【旧资料整理】解决zend framework错误 Uncaught exception 'Zend_Controller_Dispatcher_Exception' with messa
来源:互联网 发布:封装继承多态java 编辑:程序博客网 时间:2024/06/08 03:27
资料时间:2010年之前
分享时间:2010年到百度空间,空间关闭,重新整理
zend framework错误 Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified ...的意思是未找到controller,在网上搜了好多设置controller路径的办法,都未见效,经过分析zend framework的源码发现问题是出现在了根目录上.
我是通过地址http://localhost/Zend_Framework/public/index/访问的,根目录应该是public,但是zend framework将localhost作为了根目录,将Zend_Framework当成了controller名,而将public当成了action.解决办法就是通过虚拟主机将public目录设为地址的根目录.设置方法见apache设置方法.
方法二:修改默认根目录:
$frontController = Zend_Controller_Front::getInstance();
$frontController->setBaseUrl('根目录');
注意根目录就是完整地址,没有主机名.例如果地址是http://localhost//zend_framework/public则根目录设
'/zend_framework/public'
阅读全文
0 0
- 【旧资料整理】解决zend framework错误 Uncaught exception 'Zend_Controller_Dispatcher_Exception' with messa
- android 错误: thread exiting with uncaught exception
- smarty出现“Uncaught exception ‘SmartyCompilerException’ with message ‘Syntax Error in template”错误时的解决办
- thread exiting with uncaught exception
- thread exiting with uncaught exception
- Zend Framework 学习资料
- 【旧资料整理】php 解决记事本写php开头乱码
- Zend Framework教程-ErrorController,Exception
- zend framework Bootstrap.php数据库适配器配置及错误解决
- Android错误threadid=1: thread exiting with uncaught exception (group=0x416298c8)
- [iOS错误汇总]libc++abi.dylib: terminating with uncaught exception of type NSException
- Android错误threadid=1: thread exiting with uncaught exception (group=0x416298c8)
- libc++abi.dylib: terminating with uncaught exception of type NSException错误的原因
- 解决 threadid=1: thread exiting with uncaught exception (未测试)
- Zend Framework 2.0资料汇总
- Zend Framework 2.0资料汇总
- thread exiting with uncaught exception 处理方法
- Using Zend Framework with CodeIgniter
- 【旧资料整理】windows7 配置快速启动栏的一点方法和技巧
- 二分查找的循环版本和递归版本
- Excel VBA高效办公应用-第十五章-VBA在生产预测与经营分析中的应用
- 【旧资料整理】xampp v1.7 配置虚拟主机
- 关于Python的学习
- 【旧资料整理】解决zend framework错误 Uncaught exception 'Zend_Controller_Dispatcher_Exception' with messa
- 【旧资料整理】smarty中数值作加减法运算
- 面试复习——Android工程师之Android面试大纲
- mybatis学习之与Spring整合
- Unity中实现UI跟随
- #2 内建的助手
- wpa_supplicant软件架构分析
- 【旧资料整理】linux rm 安全
- Angular 模块