首页 >后端开发 >php教程 >php zend framework 安装

php zend framework 安装

WBOY
WBOY原创
2016-06-23 14:33:101040浏览

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


声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn