/** Include Bootstrap file in public/index.php */
require_once 'Zend/Application.php';
// Create application, bootstrap, and run
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()
->run();
/** Include Bootstrap file in public/index.php */
/*in application/bootstrap.php */
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap{}
class Zend_Application_Bootstrap_Bootstrap
extends Zend_Application_Bootstrap_BootstrapAbstract{}
abstract class Zend_Application_Bootstrap_BootstrapAbstract
implements Zend_Application_Bootstrap_Bootstrapper,
Zend_Application_Bootstrap_ResourceBootstrapper
How to call a function from bootstrap
$bootstrap->bootstrap(array('foo'));
In bootstrap class there should be function with name of _initFoo()
No comments:
Post a Comment
Please add comments only related to zend framework certification.