Monthly Archives: July 2012

Create service class in PHP with Zend Framework

Description: Communicate between modules in MCV architecture like PhP’s Zend Framework. Solution: Communication between modules, in MCV architecture should not be done directly by calling the model class, but accessing a service class assigned to the model. A service¬†class represents … Continue reading

Posted in Best practices, PhP | Tagged , , , , | Leave a comment

Zend Framework coding standards

Description: Guideline for coding in the Zend Framework. Solution: Use the following coding standards, derived from the original coding standards inherited from http://framework.zend.com/manual/en/coding-standard.overview.html : Class names: Classes_Upper_Case Function names: camelCaseFunction Constant names: CONSTANTS_USE_CAPITAL_LETTERS Configuration: UTF8 Return parameters(no direct $_GET or … Continue reading

Posted in Best practices, Script | Tagged , | Leave a comment

GIT Merge branches

Description: After finishing work on a branch we need to merge it to the original project or with another branch Solution: Checkout and pull main branch. Second, checkout the working branch. Run the merge command on the working branch: > … Continue reading

Posted in Tools, Version control | Tagged , | Leave a comment

GIT Create new branch from clean environment

Description: Create a new branch from GIT command line Solution: Start with a clean environment: > git status Checkout main branch: > git checkout –track origin/<Branchname> > git pull Create and switch to the new branch: > git checkout -b … Continue reading

Posted in Tools, Version control | Tagged | Leave a comment