发新话题
打印

我的Zend Framework 又出错了~5555

我的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) 怎么有一个\斜杠在里面?
而且。。为什么会报这么多错?

TOP

这个每哟关系,下面的报错都是因为你的第一个报错 引起的,提示的是引入文件路径不正确!你在看看你的文件路径设置!
等我挣了100万我就找个人娶了!哈哈!

TOP

require_once("Zend/Loader.php");

就好了~ 教程上写的都是require_once("Zend.php");、
全是错的。误人子弟了

TOP

哈哈,教程终归是教程,不可能没有错误的!
等我挣了100万我就找个人娶了!哈哈!

TOP

教程是死  但你人是活的呀
不然教程都是对的  你学起来就没意思了
交流QQ群2:16142493
智能手机软件下载
PHP新手不可错过一帖
PHP新手如何获得积分
论坛需要你,我们大家需要你!

TOP

发新话题