This guide will show you how to add a modular strucutre in Zend framework with admin routes, and seperate admin controllers in every module.
Url's will look like:
Controllers will be seperated:
By default Zend Framework does not have any built in option to seperate an application by back and frontend like for example CakePHP has. But it is very easy to add this functionality with some custom routes and a frontcontroller plugin. read more
I have been working some more with Zend Framework at work and I needed the Zend_Auth to login users the Zend_Auth_Adapter_Db_Table seems obvious to use only is not very flexible, you cannot use any extra columns in your table to authenticate users.
My solution was to write a Zend_Auth_Db_Select adapter to authenticate against a Zend_Db_Select object so you can write your own query to validate against.
I have also added a way to remember the user and by default only use a session. It did not seem clear from the manual, but Zend_Auth will remember users with a cookie by default. read more
Gearman is a really cool job queue to deal with processes that are too heavy to be done on only one server. By default the php extension for Gearman will not compile on Ubuntu 10.10 here is how to get it working. read more
Today I made a small change to the comment functionality, so it will be easier to leave snippets of codes. I never really liked BB Code or Markdown syntax so now I allow certain html tags with htmlpurifier.
All non allowed html tags will be stripped if they are not posted in a pre tag ;)
The helper will allow for automatic caching of thumbnails, just make sure the directory is writeable, the thumb name is based on resize option and width / height and will be saved under a .tmb directory.
This will create a thumbnail with adaptive resize width and height will be as specified and cropped from center.