I am trying to use the yii
framework for a while. I have been referring - first-app-doc and yiic-doc.
I have read all the posts related to mine on "stackoverflow" but couldn't get any luck resolving my problem. Mostly because I am stuck on the .ini
files and the pdo
.
I have modified the config file-protected/config/main.php
according to my database configuration. I am using the command line tool - yiic
to create the model
. It gives me 'http://hostname/path/to/index.php?r=user' to hit.
When I hit http://localhost/index.php?r=user
; it gives CDbException
- CDbConnection failed to open the DB connection: could not find driver
in the browser itself. It seems like it can't find the pdo_mysql
.
Also, I don't have the php.ini
file in /etc/php5/
, but I have different php.ini
files in /etc/php5/cgi/
, /etc/php5/apache2/
and /etc/php5/cli/
.
Also, the php5-mysql
package, I have it installed on my computer.
I have been trying and trying. This is like impossible to do.