-Bart
Raavi Raaj schreef:
Hi,
Just upgraded (my zf app) form 1.7.8 to 1.8.4. Everything went smooth.
Was trying out the performance tips at http://framework.zend.com/manual/en/performance.classloading.html#performance.classloading.striprequires.sed
My /public/index.php
----------------
<?php
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
set_include_path(implode(PATH_SEPARATOR, array(
APPLICATION_PATH . '/../library',
get_include_path()
)));
require_once 'Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance();
require_once 'Zend/Application.php';
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/config.php'
);
$application->bootstrap()->run();
----------------------------
Commented out all require_once statements except the one in Zend/Loader/Autoloader.php
Now I get this error...
Fatal error: Class 'Bootstrap' not found in C:\...\library\Zend\Application.php on line 292
My Bootstrap.php exists in /application/Bootstrap.php
Any clues what I am doing wrong.
All help is appreciated.
-R
P.S. Without the "commenting out" of require_once statements, the app runs fine.
没有评论:
发表评论