I was searching the best framework which would suit to what I want to do. I found Yii which looks great. So first of all, thanks for the work you've already done!
Now, I’m trying to duplicate the blog tutorial and fail at the scaffolding step. I use protable Xampp Lite 1.7.0 and have created a web application thanks to yiic webapp.
But when I try tu run yiic shell i have two different behaviours.
If I try to run yiic shell index.php, or any variation with or without paths, I can type the first command line “model User”. But after that PHP CLI is closed, nothing is done and I come back to the ms-dos command line.
If I try to run the command line specifying php.ini file I get this error message :
I’ve checked the requirements, PDO extension and PDO Extension for MySQL are installed.
Quote
PDO
PDO support => enabled
PDO drivers => mssql, mysql, sqlite2
pdo_mysql
PDO Driver for MySQL, client library version => 5.1.30
Any idea?
PS : I don’t know if it’s important, but yii is at the same level than wwwroot, not in wwwroot. I use windows vista and set the path environment variable to the correct value (I can run yiic webapp blog)
I continue to try to create a blog on portable xamppLite on an USB key.
Actually, I succeed to do the scaffolding on another environment. But I need to run everything on this USB key.
So for the previous error, I’m searching a solution in the MySQL documentation. But I have another weird behaviour. If I use the root user in the connection string, I get this :
Quote
Fatal error: Cannot redeclare class Yii in J:\Developpement\Serveur-web\yii\framework\yii.php on line 29
I was just stuck on this. The problem was that I have yii framework in my path. When I typed "yiic shell" it was using the one from my path, whereas if I typed "protected/yiic shell" then I got a console.