News Feed
Jobs Feed
Sections




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

Zend Developer Zone:
Blueprint for PHP Applications - Bootstrapping (Part 2)
April 05, 2006 @ 07:40:52

The Jayson Minard continues his "Blueprint for PHP Applications" series on the Zend Developer Zend today in part two, a look at creating and setting up the "bootstrapper" file mentioned previously.

In Part 1 of this article I talked a lot about funneling. Sending every request to one PHP file that then controls the flow of the request into our application code. This one PHP file is called the "Bootstrapper" and deals with everything in common for every request our application receives. The bootstrapper can setup, configure and gift wrap everything that all pages have in common. It can make sure the include path is setup correctly, that the environment is configured correctly, all PHP settings are set, that common model objects are loaded, and that the front controller is invoked to begin your MVC processing.

If you setup the bootstrapper correctly your application code will be more manageable and consistent, along with being easier to write in the first place.

They focus on teh directory structure in this part, demonstrating the correct structure, how to set the .htaccess to coordinate with it, and the creation of a simple PHP file to handle all incoming requests.

0 comments voice your opinion now!
zend framework bootstrapping part two directory structure zend framework bootstrapping part two directory structure


blog comments powered by Disqus

Similar Posts

Sameer Borate's Blog: Building a Graph data structure in PHP

phpRiot.com: Creating a fulltext search engine with the Zend Framework\'s Zend_Search_Lucene

Debuggable Blog: Crawl Google, they do the same to you

Jonathan Snook's Blog: View Caching in CakePHP 1.1.8

PHP-Coding-Practices.com: The Opening Of A New PHP Directory!


Community Events











Don't see your event here?
Let us know!


unittest security podcast release introduction hhvm opinion application database framework symfony2 component series install facebook hack package composer language performance

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework