Tag: php

software development lifecycle

Year End New Challenge – Symfony 2

Well a new month December the last one of the year, and I am tackling a new challenge Symfony 2 (http://www.symfony-project.org/) For client projects we are using Zend Framework 1.11 + Doctrine 1.2 + JQuery which all run on PHP 5.2 I think the coming holidays give me a chance to jump into PHP 5.3+ […]

database java mysql software development lifecycle tips and tricks web development

ORM Anti-pattern – Right conclusion, wrong reasons – Rebuttal

This is a rebuttal for Right conclusion, wrong reasons  (http://bit.ly/oULuaz ) for an ORM being an anti-pattern. The main purpose of an ORM (Object Relational Mapper) is to fix the object-relational mismatch, which is a mismatch between how an object is treated differently by the object oriented and relational paradigms which are fundamental constructs in programming […]

tips and tricks web development Zend Framework

Zend_Navigation Render the SubMenu for Active Menu Item using a Partial

One of the biggest problems with Zend_Navigation helpers is using partials to render sub-menus in order to achieve customized rendering especially when additional properties have been defined. The approach to the solution is as follows: // find the first active menu item $subnav = $this->navigation()->menu()->findOneByActive(1); // The finder methods return null for no matches so […]

tips and tricks web development Zend Framework

Zend Framework – Page Caching

Well along the Zend Framework journey, the biggest issue now is performance, since the applications run on shared hosting accounts. We have caching enabled for the navigation menus, translation, and even Doctrine queries, however the pages still load slow. Well one of the caching front ends (http://framework.zend.com/manual/en/zend.cache.frontends.html) is the Page front end. The configuration is […]

tips and tricks web development Zend Framework

Zend Framework – Authentication Component and Page Caching

Well now back after a few weeks caught between the new baby and closing out a few projects. Still getting more goodness from Zend Framework, as we replace a lot of our home grown code with framework components. The latest has been replacing custom login queries with Zend Auth (http://www.framework.zend.com/manual/en/zend.auth.html) In 15 minutes the connection initialization, […]

Uncategorized

PHP Externalization of Messages

As part of a project we are involved in there is a need for externalization of messages, both error and labels from the application into an external file. From within Java, this is available as message and resource bundles, and the Spring framework smoothens this process. In PHP this is another story, as the options […]

Back To Top