PHP Coding Standards (1) – File Formatting
1. For PHP files the closing tag (" ?> ") is to be omitted. It is not required by PHP, and omitting it prevents trailing whitespace from being accidentally injected into the output. In fact the proble… Continue reading
Practise dojox.grid.DataGrid with Zend_Dojo
Zend_Dojo was released together with Zend Framework 1.6 as well as Dojo toolkit package . We can make a good experience of the client-side with powerful Dojo components through a simple API provided b… Continue reading
Multi-modules and multi-templates application for Zend_Application
At the very beginning I need to introduced everybody of Zend_Application before doing anything. As one of the most important big changes in Zend Framework 1.8, the Zend_Application has introduce two n… Continue reading
Iterator Pattern in Zend Framework
The Iterator design pattern has provided a common mechanism for accessing collections. It allow user to traversal, access, and manipulate data sets, such as array, files, RSS feeds and database result… Continue reading
Strategy Pattern in Zend Framework
In the traditional process-oriented languages are often filled with a lot of if/else statements. This situation has easily made the logic of chaos and trouble to amend. The strategy design pattern was… Continue reading
PHP Coding Standards – Preview
Zend had provided the guidelines for developers and teams working on or with Zend Framework. Details posted on : http://framework.zend.com/wiki/display/ZFDEV/Zend+Framework+Contributor+Guide . Within … Continue reading
Basic of Dojo
We can import the package of dojo toolkit everytime and everywhere using CDN provided by AOL or Google Api. The size of it is only about 30k : [codesyntax lang="javascript"] <!-- From AOL --> <script … Continue reading
Caching application.ini for Zend Framework apps
In most of the time we build our application using Zend Framework, we make index.php as the entry which creates the object of Zend_Application and it's configurations such as Application.ini. But it's… Continue reading