2012-01-26 11:01:38 +00:00
|
|
|
<?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',
|
2012-02-08 15:02:38 +00:00
|
|
|
'commandMap' => array(
|
|
|
|
|
'fixture' => array(
|
|
|
|
|
'class'=>'application.extensions.fixtureHelper.FixtureHelperCommand',
|
|
|
|
|
),
|
|
|
|
|
),
|
2012-01-26 11:01:38 +00:00
|
|
|
// application components
|
|
|
|
|
'components'=>array(
|
2012-01-26 11:48:45 +00:00
|
|
|
/*'db'=>array(
|
2012-01-26 11:01:38 +00:00
|
|
|
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
|
2012-01-26 11:48:45 +00:00
|
|
|
),*/
|
2012-01-26 11:01:38 +00:00
|
|
|
// uncomment the following to use a MySQL database
|
2012-01-26 11:48:45 +00:00
|
|
|
|
2012-01-26 11:01:38 +00:00
|
|
|
'db'=>array(
|
2012-01-26 11:48:45 +00:00
|
|
|
'connectionString' => 'mysql:host=localhost;dbname=intranet_dev',
|
2012-01-26 11:01:38 +00:00
|
|
|
'emulatePrepare' => true,
|
|
|
|
|
'username' => 'root',
|
|
|
|
|
'password' => '',
|
|
|
|
|
'charset' => 'utf8',
|
|
|
|
|
),
|
2012-01-31 17:42:47 +00:00
|
|
|
'testdb'=>array(
|
2012-03-08 19:02:29 +00:00
|
|
|
'class' => 'CDbConnection',
|
2012-01-31 17:42:47 +00:00
|
|
|
'connectionString' => 'mysql:host=localhost;dbname=intranet_test',
|
|
|
|
|
'emulatePrepare' => true,
|
|
|
|
|
'username' => 'root',
|
|
|
|
|
'password' => '',
|
|
|
|
|
'charset' => 'utf8',
|
|
|
|
|
),
|
2012-03-08 19:02:29 +00:00
|
|
|
'stagedb'=>array(
|
|
|
|
|
'class' => 'CDbConnection',
|
|
|
|
|
'connectionString' => 'mysql:host=maquetaweb.ws;dbname=maqueta_intranet_stage',
|
|
|
|
|
'emulatePrepare' => true,
|
|
|
|
|
'username' => 'maqueta_intranet',
|
|
|
|
|
'password' => 'intranet',
|
|
|
|
|
'charset' => 'utf8',
|
|
|
|
|
),
|
2012-01-26 11:48:45 +00:00
|
|
|
|
2012-02-08 15:02:38 +00:00
|
|
|
'fixture'=>array(
|
|
|
|
|
'class'=>'system.test.CDbFixtureManager',
|
|
|
|
|
),
|
2012-01-26 11:01:38 +00:00
|
|
|
),
|
|
|
|
|
);
|