Q: My yiic tool cannot run model and crud commands. Why?

You are viewing revision #4 of this wiki article.
This is the latest version of this article.
You may want to see the changes made in this revision.

« previous (#3)

Some PHP installations may use a different php.ini file for CLI PHP (command line PHP parser). As a result, when running the model or crud command in yiic shell, you may encounter errors like "YiiBase::include(PDO.php): failed to open stream..." or "...could not find driver", even though the requirement checker confirms you have PDO and the corresponding database driver.

To solve this problem, please double check your CLI PHP configuration. You may also use the following command to make sure your CLI PHP is using the specified php.ini file:

php -c path/to/php.ini protected/yiic.php shell
0 0
1 follower
Viewed: 15 543 times
Version: Unknown (update)
Category: Tutorials
Tags:
Written by: qiang
Last updated by: mishhh
Created on: Feb 11, 2009
Last updated: 15 years ago
Update Article

Revisions

View all history