我正在从 zendCast 学习 zend 框架,但找不到问题
我正在使用:
-Zend 服务器 CE
-Zend Studio 7.2
-Zend Framework 1.10(使用zend studio创建)
在我的库文件夹中,我有一个文件夹 App,在该文件夹中有一个 php 文件 Country.php,它对应于 App_Countries 类,但是当我尝试创建一个新的 App_Countries 对象时,它说该类无法加载有关如何摆脱的任何想法错误?
Fatal error: Class 'App_Countries' not found in /usr/local/zend/apache2/htdocs/ZC/application/controllers/IndexController.php on line 14
索引.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'));
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library'),
get_include_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();