..\library\Doctrine ディレクトリを見て、Doctrine.php が実際にそこにあるかどうかを確認してください。私はそれが疑わしい。
私が使用するスケルトンがあります: https://github.com/bubba-h57/secret-skeleton
( https://github.com/bubba-h57/secret-skeleton/blob/master/public/index.php ) ファイルを見ると、Doctrine が確実に見つかるようにいくつかのパスを設定した場所がわかります。そして自動ロード。このようなもの:
// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
// Define path to Zend library directory
defined('ZEND_LIB_PATH')
|| define('ZEND_LIB_PATH', realpath(dirname(__FILE__) . '/../library/vendor/zend/framework/1.11.12/library'));
// Define path to the user library directory
defined('USER_LIB_PATH')
|| define('USER_LIB_PATH', realpath(dirname(__FILE__) . '/../library'));
// Define path to the user resource directory
defined('USER_RES_PATH')
|| define('USER_RES_PATH', realpath(dirname(__FILE__) . '/../resources'));
// Define path to the zf1-doctrine2 library directory
defined('ZF1D2_LIB_PATH')
|| define('ZF1D2_LIB_PATH', realpath(dirname(__FILE__) . '/../library/vendor/zf1-d2/library'));
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
ZEND_LIB_PATH,
USER_LIB_PATH,
ZF1D2_LIB_PATH,
)));
/** Zend_Application */
require_once 'Zend/Application.php';
// Create application, bootstrap, and run
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()
->run();
以下も参照してください:
http://www.thecodehouse.com/2011/03/25/installing-doctrine-orm-in-a-zend-framework-application/
http://phphints.wordpress.com/ 2011/07/10/getting-bisna-to-work-with-doctrinecommon-2-1-0/