Pagination using Zend_Paginator
Sunday, July 4, 2010

Any web application that retrieves large amounts of data for display is bound to have the need to split that data over several pages. Developing the code to do this from scratch is not trivial, so it is extremely useful that the Zend Framework has the Zend_Paginator module, which assists with this task. (more…)

Posted by James at 1:54 pm   1 comment

The Blogs Page: The feed/digest action handler
Friday, April 9, 2010

The feed controller digest action handler is used to render a list of the five most recent blog posts on the specified blog, as exposed by the blog’s RSS feed. (more…)

Posted by James at 7:18 am   0 comments

The Blogs Page: The mapper classes
Tuesday, February 9, 2010

The Default_Model_Db_Mapper_Blog class is used to manage data exchange between the Default_Model_Db_Blog and the Default_Model_Db_Table_Blog classes; this exchange represents reading data from and writing data to the database. (more…)

Posted by James at 12:52 am   2 comments

The Blogs Page: The data classes
Saturday, December 19, 2009

The Default_Model_Db_Blog class is used to encapsulate the data contained in the rows of the blog table. (more…)

Posted by James at 1:55 pm   0 comments

The Blogs Page: The index/blogs action handler
Friday, December 4, 2009

The blogs page is handled by the blogs action of the index controller. This fetches information about the blogs from a database table; it then passes this information to the view script. (more…)

Posted by James at 12:47 am   0 comments

Bootstrapping the Application: the Standard Database Resource Plugin
Wednesday, September 23, 2009

The configuration of the standard database resource plugin Zend_Application_Resource_Db can be done easily via the configuration file. The following code (with sensitive settings hidden) shows how to set up the database adapter: (more…)

Posted by James at 4:29 pm   0 comments