Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rob Allen's Blog:
Initial notes on Zend_Application
Mar 26, 2009 @ 14:35:02

Rob Allen has a new post with a few introductory notes about the upcoming Zend_Application component of the Zend Framework that's coming and (if all goes well) will be deployed with the 1.8 version of the framework.

Zend_Application is now in the incubator and being actively developed for version 1.8 of Zend Framework. I've had a little play using it with a standard ZF application with no modules and this is what I've worked out so far. [...] Zend_Application is intended to make bootstrapping your application easier, presumably with less code.

He looks specifically at the bootstraping aspect of the component and comes up with an example Bootstrap.php file that sets up a configuration, a database resource, a view object and the location and information for the front controller. Another boostrap example shows how you can use a configuration file to do it similarly but more flexibly.

tagged: introduction look zendapplication boostrap example configuration file

Link:

Anis uddin Ahmad's Blog:
Advanced bootstrapping : Configure your Zend Framework application for mult
Feb 12, 2009 @ 19:40:55

Anis uddin Ahmad has a handy bootstrapping example for those that might want to use the Zend Framework for more than just a single site.

A web application goes through some stages when growing up. Generally, it starts from development and ends at production. There can be some more stages within this two ends. And, in maximum cases this stages are overlapped. [...] In this situations, if we want to keep bootstrap in SVN repo, it needs to setup bootstrap in a little different way. So that, it can handle many server settings with a single bootstrap.

He sets up some assumptions (like a familiarity with the Zend Framework), some of the files you'll need to download and how to use them to set up your host for the multiple-site bootstrap. The different sites are defined in arrays at the beginning of the file and are compared to the current hostname. The correct include paths are then set and the bootstrap script continues on.

tagged: boostrap advanced zendframework application multiple hostname

Link:


Trending Topics: