boot index


~/public_html/temat01/public/index.php.html  1 <?php  2 // Define path to application directory  3 defined('APPLICATION_PATH')  4     || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));  5 // Define application environment  6 defined('APPLICATION_ENV')  7     || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));  8  9 // Ensure library/ is on include_path 10 set_include_path(implode(PATH_SEPARATOR, array( 11     realpath(APPLICATION_PATH . '/../library'), 12     get_include_path(), 13 ))); 14 15 /** Zend_Application */ 16 require_once 'Zend/Application.php'; 17 18 // Create application, bootstrap, and run 19 $application = new Zend_Application( 20     APPLICATION_ENV, 21     APPLICATION_PATH . '/configs/application.ini' 22 ); 23 24 25 // Umożliwia ładowanie automatyczne klas 26    require_once "Zend/Loader/Autoloader.php"; 27        $autoloader = Zend_Loader_Autoloader::getInstance(); 28        $autoloader->setFallbackAutoloader(true); 29 // Umożliwia pracę z layout 30         $startMvc = Zend_Layout::startMvc(); 31 // Ustawia bazowy url w kontrolerze 32 33 Zend_Controller_Front::getInstance()->setBaseUrl("/~danusia/temat01/public"); 34 $application->bootstrap() 35             ->run();

Wyszukiwarka

Podobne podstrony:
index
index
index
index
index
index
index
index

więcej podobnych podstron