zendframework配置问题
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
------解决方案--------------------
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);
------解决方案--------------------
E:\pro\website\application/configs/application.ini on line 204
------解决方案--------------------
resources.db.params.profiler = false
删掉这行试试