Home > Backend Development > PHP Tutorial > php zend framework 安装

php zend framework 安装

WBOY
Release: 2016-06-23 14:33:10
Original
1045 people have browsed it

php zend framework主要是为了实现mvc架构,目的为了让系统能更好的优化重构。

今天看了zend framework的入门教程1.5.2,按照例子Zend Framework配置快速指南配置了zend framework。问题还是出了不少。

zend framework安装

配置完成后出现这样的错误,忙了大半天找不到解决方法。最后看了phpinfo页面才知道Loaded Configuration File D:\WINDOWS\php.ini。我改的配置是C:\php5\php.ini。自己都傻了。晕

Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The PDO extension is required for this adapter but the extension is not loaded' in D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\zf-tutorial\library\Zend\Db\Adapter\Pdo\Abstract.php:107 Stack trace: #0 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\zf-tutorial\library\Zend\Db\Adapter\Abstract.php(417): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\zf-tutorial\library\Zend\Db\Adapter\Pdo\Abstract.php(230): Zend_Db_Adapter_Abstract->query('DESCRIBE `album...', Array) #2 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\zf-tutorial\library\Zend\Db\Adapter\Pdo\Mysql.php(136): Zend_Db_Adapter_Pdo_Abstract->query('DESCRIBE `album...') #3 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\zf-tutorial\library\Zend\Db\Table\Abstract.php(696): Zend_Db_Adapter_Pdo_Mysql->describeTable('albums', NULL) #4 D:\Program Files\Apache Software Foundation\Apache in D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\zf-tutorial\library\Zend\Db\Adapter\Pdo\Abstract.php on line 107


Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template