- Activación herramienta Gii
- Conexión a BD git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_IntranetNueva/trunk@5 77cfc57b-8ef4-1849-9df6-4a38aa5da120
This commit is contained in:
parent
fcd87f69e1
commit
335f174957
@ -7,18 +7,18 @@ return array(
|
||||
'name'=>'My Console Application',
|
||||
// application components
|
||||
'components'=>array(
|
||||
'db'=>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',
|
||||
'connectionString' => 'mysql:host=localhost;dbname=intranet_dev',
|
||||
'emulatePrepare' => true,
|
||||
'username' => 'root',
|
||||
'password' => '',
|
||||
'charset' => 'utf8',
|
||||
),
|
||||
*/
|
||||
|
||||
),
|
||||
);
|
||||
@ -20,14 +20,14 @@ return array(
|
||||
|
||||
'modules'=>array(
|
||||
// uncomment the following to enable the Gii tool
|
||||
/*
|
||||
|
||||
'gii'=>array(
|
||||
'class'=>'system.gii.GiiModule',
|
||||
'password'=>'Enter Your Password Here',
|
||||
'password'=>'password',
|
||||
// If removed, Gii defaults to localhost only. Edit carefully to taste.
|
||||
'ipFilters'=>array('127.0.0.1','::1'),
|
||||
),
|
||||
*/
|
||||
|
||||
),
|
||||
|
||||
// application components
|
||||
@ -47,19 +47,19 @@ return array(
|
||||
),
|
||||
),
|
||||
*/
|
||||
'db'=>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',
|
||||
'connectionString' => 'mysql:host=localhost;dbname=intranet_dev',
|
||||
'emulatePrepare' => true,
|
||||
'username' => 'root',
|
||||
'password' => '',
|
||||
'charset' => 'utf8',
|
||||
),
|
||||
*/
|
||||
|
||||
'errorHandler'=>array(
|
||||
// use 'site/error' action to display errors
|
||||
'errorAction'=>'site/error',
|
||||
|
||||
@ -7,11 +7,13 @@ return CMap::mergeArray(
|
||||
'fixture'=>array(
|
||||
'class'=>'system.test.CDbFixtureManager',
|
||||
),
|
||||
/* uncomment the following to provide test database connection
|
||||
'db'=>array(
|
||||
'connectionString'=>'DSN for test database',
|
||||
'connectionString' => 'mysql:host=localhost;dbname=intranet_test',
|
||||
'emulatePrepare' => true,
|
||||
'username' => 'root',
|
||||
'password' => '',
|
||||
'charset' => 'utf8',
|
||||
),
|
||||
*/
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user