The full path is correct, and the file/class name is "Bootstrap" with an upper case "B".

Ruslan Zavackiy wrote:
Check for Bootstrap.php to be exactly with uppercase, not bootstrap.php and check full path for this also

Best regards,
Ruslan zavackiy.

On 2009.9.8, at 02:04, Steven Szymczak <sc.szymc...@googlemail.com> wrote:

I'm trying to update my site to make use of Zend_Application, and I've set everything up according to the QuickStart and Zend_Application docs, but all I get is the following error:

"Warning: require_once( /Users/Steven/Sites/farstrider.eu/application/Bootstrap.php ) [function.require-once]: failed to open stream: No such file or directory in /Users/Steven/Sites/farstrider.eu/library/Zend/Application.php on line 290

Fatal error: require_once() [function.require]: Failed opening required ' /Users/Steven/Sites/farstrider.eu/application/Bootstrap.php ' (include_path='/Users/Steven/Sites/farstrider.eu/library:.:/php/includes:/usr/local/php/lib/php') in /Users/Steven/Sites/farstrider.eu/library/Zend/Application.php on line 290"

Even though Bootstrap.php does indeed exist in the application/ directory, and all permissions are correctly set.

I'm using ZF 1.9, and my application/Bootstrap.php and public/index.php files are as follows:

Bootstrap.php
-------------

<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{

}

index.php
---------

<?php

// Define path to application directory
defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) .'/../application'));

// Define application environment
defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Set include path
set_include_path(implode(PATH_SEPARATOR, array(dirname(dirname(__FILE__)) .'/library', get_include_path(),)));

// Zend Application
require_once 'Zend/Application.php';

// Create application, bootstrap, and run
$application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH .'/config/application.xml');
$application->bootstrap()->run();

Any ideas?

--
スティーブン


--
スティーブン

Reply via email to