php zend framework 安装

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


posted on 2009-04-27 22:54  yukunming  阅读(771)  评论(0编辑  收藏  举报

导航