application folder:
application/Bootstrap.php
its contents, minimally, should be
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
}
-ralph
Raavi Raaj wrote:
> Even if I comment out the 'require_once Zend/Application.php'. I keep
> getting the same error.
> *Fatal error*: Class 'Bootstrap' not found in
> *C:\...\library\Zend\Application.php* on line *292*
>
> -R
>
>
>
>
> On 7/17/09, *Bart McLeod* <mcleod@spaceweb.nl
> <mailto:mcleod@spaceweb.nl>> wrote:
>
> You still have a require_once 'Zend/Application.php' so it could be
> that you have to update your include_path after the upgrade?
> Ohterwise try commenting the line where you require Application.php
> and see if it complains about not finding Zend_Application...
>
> -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.
>>
>
没有评论:
发表评论