PHPEye开源社区 » Zend Framework 使用讨论 » 我的Zend Framework 又出错了~5555
《Programming PHP》第二版上市
2007-11-27 13:21 sxysxy
我的Zend Framework 又出错了~5555

<?php
//set_include_path(get_include_path() .PATH_SEPARATOR . 'Library/');
ini_set('include_path','Library');
require_once ('Zend/Controller/Front.php');
Zend_Controller_Front::run('app/controllers');

?>


报错

Warning:  Zend_Loader::include_once(app/controllers\IndexController.php) [function.Zend-Loader-include-once]: failed to open stream: No such file or directory in D:\Program Files\EasyPHP1-8\www\zend\Library\zend\Loader.php on line 178

Warning:  Zend_Loader::include_once() [function.include]: Failed opening 'app/controllers\IndexController.php' for inclusion (include_path='Library') in D:\Program Files\EasyPHP1-8\www\zend\Library\zend\Loader.php on line 178

Fatal error: Uncaught exception'Zend_Controller_Dispatcher_Exception' with message 'Invalid controllerspecified (error)' in D:\ProgramFiles\EasyPHP1-8\www\zend\Library\zend\Controller\Dispatcher\Standard.php:194Stack trace:#0 D:\ProgramFiles\EasyPHP1-8\www\zend\Library\zend\Controller\Front.php(920):Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),Object(Zend_Controller_Response_Http))#1 D:\ProgramFiles\EasyPHP1-8\www\zend\Library\zend\Controller\Front.php(224):Zend_Controller_Front->dispatch()#2 D:\Program Files\EasyPHP1-8\www\zend\index.php(5):Zend_Controller_Front::run('app/controllers')#3 {main} thrown in D:\Program Files\EasyPHP1-8\www\zend\Library\zend\Controller\Dispatcher\Standard.php on line 194


奇怪了include_once(app/controllers\IndexController.php) 怎么有一个\斜杠在里面?
而且。。为什么会报这么多错?

2008-7-26 04:08 logicouter
set_include_path

set_include_path('.' . PATH_SEPARATOR . './lib'
. PATH_SEPARATOR . './app/models/'
. PATH_SEPARATOR . get_include_path());
include "Zend/Loader.php";

页: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.