Home Backend Development PHP Tutorial zendframework配置有关问题

zendframework配置有关问题

Jun 13, 2016 am 09:59 AM
application config pro zend

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

删掉这行试试

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Which one is worth buying, Xiaomi Mi Pad 6 or Pro? Which one is worth buying, Xiaomi Mi Pad 6 or Pro? Feb 07, 2024 pm 08:36 PM

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? iPhone 15 Pro Max vs iPhone 14 Pro Max: What are the comparisons and differences between them? Sep 19, 2023 pm 08:29 PM

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

How to start Xiaomi Mi Band 8pro How to start Xiaomi Mi Band 8pro Jan 14, 2024 am 08:51 AM

How to start Xiaomi Mi Band 8pro

The difference between macbook air and pro The difference between macbook air and pro Feb 08, 2024 am 09:57 AM

The difference between macbook air and pro

How to fix error 0xC00CE556 returned by the .NET parser How to fix error 0xC00CE556 returned by the .NET parser Apr 25, 2023 am 08:34 AM

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

What changes will Apple's A17 Pro GPU bring? What changes will Apple's A17 Pro GPU bring? Sep 18, 2023 pm 08:53 PM

What changes will Apple's A17 Pro GPU bring?

Xiaomi Pro14 release date Xiaomi Pro14 release date Jan 05, 2024 pm 02:50 PM

Xiaomi Pro14 release date

What is the principle of python WSGI Application? What is the principle of python WSGI Application? May 19, 2023 pm 01:25 PM

What is the principle of python WSGI Application?

See all articles