zendframework配置问题

xiaoqiang111111 2011-08-04 10:56:04
zendframework配置完成后,访问页面如下异常,是什么原因,请指教,谢谢。

Fatal error: Uncaught exception 'Zend_Config_Exception' with message 'Error parsing E:\pro\website\application/configs/application.ini on line 204 ' in E:\pro\website\library\Zend\Config\Ini.php:182 Stack trace: #0 E:\pro\website\library\Zend\Config\Ini.php(202): Zend_Config_Ini->_parseIniFile('E:\pro\website...') #1 E:\pro\website\library\Zend\Config\Ini.php(126): Zend_Config_Ini->_loadIniFile('E:\pro\website...') #2 E:\pro\website\library\Zend\Application.php(386): Zend_Config_Ini->__construct('E:\pro\website...', 'development') #3 E:\pro\website\library\Zend\Application.php(85): Zend_Application->_loadConfig('E:\pro\website...') #4 E:\pro\website\content\index.php(27): Zend_Application->__construct('development', E:\pro\website...') #5 {main} thrown in E:\pro\website\library\Zend\Config\Ini.php on line 182
...全文
105 点赞 收藏 6
写回复
6 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
resources.db.params.profiler = false

删掉这行试试
回复
xiaoqiang111111 2011-08-04
204行是如下代码,应该没有什么问题吧
resources.db.adapter = pdo_mysql
resources.db.params.host = localhost
resources.db.params.username = wanggq
resources.db.params.password = 123456
resources.db.params.dbname = volvo_chinese
resources.db.params.profiler = false
resources.db.params.charset = utf8
resources.db.isDefaultTableAdapter = true
回复
helloyou0 2011-08-04
E:\pro\website\application/configs/application.ini on line 204
回复
xiaoqiang111111 2011-08-04
这是在什么里面的配置,我初次接触php,还请详细说一下,谢谢
回复
潇湘博客 2011-08-04
define ('P_S', PATH_SEPARATOR);
define ('ROOT', "../");
set_include_path(ROOT .P_S .'Zend' .P_S .ROOT.get_include_path());
require_once ROOT.'Zend/Loader.php';
require_once ROOT.'function/function.php';
require_once ROOT.'inc/access.php';
Zend_Loader::loadClass('Zend_Db');
Zend_Loader::loadClass('Zend_Config_Ini');
$config = new Zend_Config_Ini('../inc/config.ini', 'general');
$db = Zend_Db::factory($config->db->adapter,$config->db->config->toArray());

CheckingAccess($session->userid,'工作人员管理');

$session->perm='';
require_once ROOT."header.php";


$selectGroup = $db->select();
$selectGroup->from('sys_user', '*');
$selectGroup->where('IsGroup = ?',1);
$selectGroup->where('Sid = ?',$session->sid);
$dataGroup=$db->fetchAll($selectGroup);
回复
相关推荐
发帖
Framework
创建于2008-08-27

4245

社区成员

国内外优秀PHP框架讨论学习
申请成为版主
帖子事件
创建了帖子
2011-08-04 10:56
社区公告
暂无公告