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+ […]
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 […]
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 […]
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 […]
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, […]
Generate PDF of HTML Content with PHP
This seems to be one of those gray areas, it seems that there is currently no hope in sight. The problem seems to be that the API has to first render the HTML before PDF generation which makes a single step solution impractical. Some options have been to build on top of the WebKit or […]
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 […]