zendframework配置有关问题
Jun 13, 2016 am 09:59 AM
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
删掉这行试试

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Which one is worth buying, Xiaomi Mi Pad 6 or Pro?

iPhone 15 Pro Max vs iPhone 14 Pro Max: What are the comparisons and differences between them?

The difference between macbook air and pro

How to fix error 0xC00CE556 returned by the .NET parser

What changes will Apple's A17 Pro GPU bring?

What is the principle of python WSGI Application?
