diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2012-04-13 23:44:38 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2012-04-13 23:44:38 +0200 |
| commit | 69bffb7fe85347621f41c0baed839452e72930e1 (patch) | |
| tree | 8446bced1732932fd741e91ff8dba88b1e56693b /protected/config/console.php | |
| parent | a098922f681a9a1362202580a26b132501df4b1b (diff) | |
Erstes Yii Projekt
Diffstat (limited to '')
| -rw-r--r-- | protected/config/console.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/protected/config/console.php b/protected/config/console.php new file mode 100644 index 0000000..15c9353 --- /dev/null +++ b/protected/config/console.php @@ -0,0 +1,24 @@ +<?php + +// This is the configuration for yiic console application. +// Any writable CConsoleApplication properties can be configured here. +return array( + 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..', + 'name'=>'My Console Application', + // application components + 'components'=>array( + 'db'=>array( + 'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db', + ), + // uncomment the following to use a MySQL database + /* + 'db'=>array( + 'connectionString' => 'mysql:host=localhost;dbname=testdrive', + 'emulatePrepare' => true, + 'username' => 'root', + 'password' => '', + 'charset' => 'utf8', + ), + */ + ), +);
\ No newline at end of file |
