Plugins' bootstrap code is now called
[pivip.git] / project / index.php
blob623d9d4330b503e697aad1fc41de1a113cc58f91
1 <?php
3 set_include_path('library'
4 . PATH_SEPARATOR . 'application/models'
5 . PATH_SEPARATOR . 'plugins'
6 . PATH_SEPARATOR . '.');
8 // Enable the auto-loading of classes that follow the ZF naming convention
9 // http://framework.zend.com/manual/en/coding-standard.naming-conventions.html
10 require 'Zend/Loader.php';
11 Zend_Loader::registerAutoload();
13 // Load the plugins and run their bootstrap code
14 $plugins = new Pivip_Plugin();
16 foreach($plugins as $plugin)
18 $plugin->bootstrap();
21 // With all plugins set, start the dispatch loop
22 Zend_Controller_Front::getInstance()->dispatch();