我是照着php100那个教程一模一样做的,pdo,pdomysql,rewrite,AllowOverride all都改了
然后代码也是全程COPY教程里的代码
运行的时候就报告错误Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (index.php)' in D:\AppServ\www\zendframework\library\Zend\Controller\Dispatcher\Standard.php:248 Stack trace: #0 D:\AppServ\www\zendframework\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 D:\AppServ\www\zendframework\index.php(27): Zend_Controller_Front->dispatch() #2 {main} thrown in D:\AppServ\www\zendframework\library\Zend\Controller\Dispatcher\Standard.php on line 248.htaccess文件的代码:
RewriteEngine on
RewriteRule .* index.phpphp_flag magic_quotes_gpc off
php_flag register_globals offindex.php的代码
<?php error_reporting(E_ALL|E_STRICT); //在开启错误报告 date_default_timezone_set('Asia/Shanghai'); //配置地区 set_include_path('.' .PATH_SEPARATOR .'./library'.PATH_SEPARATOR .'./application/models/'.PATH_SEPARATOR . get_include_path());  //配置环境路径// require_once 'Zend/Loader.php';
// Zend_Loader::registerAutoload();//设置Zend Framework 自动载入类文件 require_once "Zend/Loader/Autoloader.php";  //载入zend框架
Zend_Loader_Autoloader::getInstance()->setFallbackAutoloader(true); //静态载入自动类文件 $registry = Zend_Registry::getInstance(); //静态获得实例
$view = new Zend_View(); //实例化zend 模板
$view->setScriptPath('./application/views/scripts/');//设置模板显示路径
$registry['view'] = $view;//注册View //设置控制器
$frontController =Zend_Controller_Front::getInstance(); $frontController->setBaseUrl('/zendframework')//设置基本路径
->setParam('noViewRenderer', true)
->setControllerDirectory('./application/controllers')
->throwExceptions(true)
->dispatch();
?>至于前台模板里的东西,无非就是输出之类的
我的项目文件夹名称是zendframework,放在www目录下   AppServ放在D盘
疯了新手,求指导