>백엔드 개발 >PHP 튜토리얼 >php zend framework 安装

php zend framework 安装

WBOY
WBOY원래의
2016-06-23 14:33:101041검색

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으로 문의하세요.