ITeye博客

PHP

共 1 篇文章

yii framework: sqlite with "could not find driver" issue 解决方法

根据yii framework的 官方教程 ,使用 sqlite,在利用Gii生成 Model skeleton 的过程中,很多人会遇到以下错误 CDbConnection failed to open the DB connection: could not find driver 我的是win7+apache+sqlite+PHPv5.3.27,这是我的解决方案: 1. 检查PHP.ini是否启用了sqlite的扩展模块配置,要将这行前面的分号去掉。 extension=php_pdo_sqlite.dll 2. 由于PHP5.2的默认查找扩展模块(Extension)路径是c:\php…

2013-09-12 16:03 · PHP · yii