-- Justin Barnes <[email protected]> wrote
(on Monday, 20 April 2009, 04:43 PM -0500):
> I've begun playing with Zend_Application. I really like the Idea. However I am
> struggling with how to organize the bootstrap and associated files within my
> project. This is my current setup ...
> 
> index.php
> 
> <?php require_once '../application.php'; ?>
> 
> application.php ...
> 
> <?php
> 
>     // Set the Include path ..
>     // Set the Application configuration ...
>        
>     // Bootstrap
>     require_once 'Zend/Application.php';
>     $application = new Zend_Application($configSection,$applicationConfig);
>     $application->bootstrap();
>     $application->run();
> ?>
> 
> boostrap.php ...
> 
> class Bootstrap extends Zend_Application_Bootstrap_Base
>     {
>      // init functions & dispatch
>     }
> 
> 
> How are others handling this?

Zend_Tool generates a public/index.php file, an
application/Bootstrap.php file, and an
application/configs/application.ini file. public/index.php pulls in
Zend_Application, and passes it the path to the configuration file,
which indicates the include paths and path to the bootstrap class file.

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/

Reply via email to