我将此添加到 application.ini 到部分生产中
resources.db.adapter = "pdo_mysql"
resources.db.params.dbname = "rzeki"
resources.db.params.host = "localhost"
resources.db.params.username = "root"
resources.db.params.password = ""
resources.db.params.charset = "utf8"
但是当我运行应用程序时,我遇到了这个错误:
Stack trace:
#0 C:\Program Files\Zend\ZendServer\share\ZendFramework\library\Zend\Config\Ini.php(296): Zend_Config_Ini->_processKey(Array, 'params.dbname', 'rzeki')
#1 C:\Program Files\Zend\ZendServer\share\ZendFramework\library\Zend\Config\Ini.php(296): Zend_Config_Ini->_processKey(Array, 'db.params.dbnam...', 'rzeki')
#2 C:\Program Files\Zend\ZendServer\share\ZendFramework\library\Zend\Config\Ini.php(261): Zend_Config_Ini->_processKey(Array, 'resources.db.pa...', 'rzeki')
#3 C:\Program Files\Zend\ZendServer\share\ZendFramework\library\Zend\Config\Ini.php(153): Zend_Config_Ini->_processSection(Array, 'production')
#4 C:\Program Files\Zend\ZendServer\share\ZendFramework\library\Zend\Application.php(386): Zend_Config_Ini->__construct('C:\Program File...', 'production')
#5 C:\Program Files\Zend\ZendServer\share\ in C:\Program Files\Zend\ZendServer\share\ZendFramework\library\Zend\Config\Ini.php on line 294
我正在使用 Netbeans + ZendServer CE
编辑:
当我在安装文件夹中安装 digitalous 时,主 index.php :
警告:include_once(Digitalus\Installer.php) [function.include-once]:无法打开流:C:\Program Files\Zend\ZendServer\share\ZendFramework\library\Zend\Loader.php 中没有这样的文件或目录在第 146 行
警告:include_once() [function.include]: 未能打开 'Digitalus\Installer.php' 以包含 (include_path='.;./library;.;C:\Program Files\Zend\ZendServer\share\ZendFramework\library' ) 在第 146 行的 C:\Program Files\Zend\ZendServer\share\ZendFramework\library\Zend\Loader.php
致命错误:第 19 行的 C:\Program Files\Zend\Apache2\htdocs\digitalus\install\install.php 中找不到类“Digitalus_Installer”