Hi,
I am not able to create a model with the yiic shell. After typing "model User" the shell always crashes and a CLI (crash-)error message appears. Test-System: WinXP with XAMPP 1.7.0 (PHP 5.2.8, MySQL 5.1.30), yii 1.1a (I tried 1.0.10 and had the same problems).
Output PDO:
print_r(PDO::getAvailableDrivers());
Array
(
[0] => mssql
[1] => mysql
[2] => sqlite2
)
My config - console.php (or should I post the main.php?):
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Console Application',
// application components
'components'=>array(
'db'=>array(
'class'=>'CDbConnection',
'connectionString'=>'mysql:host=localhost;dbname=yii_test',
'username'=>'username',
'password'=>'pw',
),
),
);
The command "echo php_ini_loaded_file();" shows the same php.ini as in the browser. Hopefully someone can help me, because I think it´s a great Framework, but I really don´t know what´s wrong.
Thanks and bye