您好,欢迎访问一九零五行业门户网

zf配置出错…解决思路

zf配置出错……
zf 配置出错:
fatal error: uncaught exception 'zend_controller_dispatcher_exception' with message 'invalid controller specified (index.php)' in d:\wamp\apache2.2\htdocs\zendframework\library\zend\controller\dispatcher\standard.php:242 stack trace: #0 d:\wamp\apache2.2\htdocs\zendframework\library\zend\controller\front.php(954): zend_controller_dispatcher_standard->dispatch(object(zend_controller_request_http), object(zend_controller_response_http)) #1 d:\wamp\apache2.2\htdocs\zendframework\index.php(29): zend_controller_front->dispatch() #2 {main} thrown in d:\wamp\apache2.2\htdocs\zendframework\library\zend\controller\dispatcher\standard.php on line 242
在standard.php在242行:
require_once 'zend/loader.php';
/** zend_controller_dispatcher_abstract */
require_once 'zend/controller/dispatcher/abstract.php';
warning: require_once(zend/loader.php) [function.require-once]: failed to open stream: no such file or directory in d:\wamp\apache2.2\htdocs\zendframework\library\zend\controller\dispatcher\standard.php on line 24
fatal error: require_once() [function.require]: failed opening required 'zend/loader.php' (include_path='.;c:\php5\pear') in d:\wamp\apache2.2\htdocs\zendframework\library\zend\controller\dispatcher\standard.php on line 24
------解决方案--------------------
zendframework配置方法
1:在php.ini文件里面include_path里面引入你的zendframework包的路径 ,例如:include_path = .;d:\xampp\php\pear;d:wamp\library
2:开启apache配置文件里面的 loadmodule rewrite_module modules/mod_rewrite.so 模块
3:重启服务就ok
其它类似信息

推荐信息