- 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',
|
'name'=>'My Console Application',
|
||||||
// application components
|
// application components
|
||||||
'components'=>array(
|
'components'=>array(
|
||||||
'db'=>array(
|
/*'db'=>array(
|
||||||
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
|
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
|
||||||
),
|
),*/
|
||||||
// uncomment the following to use a MySQL database
|
// uncomment the following to use a MySQL database
|
||||||
/*
|
|
||||||
'db'=>array(
|
'db'=>array(
|
||||||
'connectionString' => 'mysql:host=localhost;dbname=testdrive',
|
'connectionString' => 'mysql:host=localhost;dbname=intranet_dev',
|
||||||
'emulatePrepare' => true,
|
'emulatePrepare' => true,
|
||||||
'username' => 'root',
|
'username' => 'root',
|
||||||
'password' => '',
|
'password' => '',
|
||||||
'charset' => 'utf8',
|
'charset' => 'utf8',
|
||||||
),
|
),
|
||||||
*/
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@ -20,14 +20,14 @@ return array(
|
|||||||
|
|
||||||
'modules'=>array(
|
'modules'=>array(
|
||||||
// uncomment the following to enable the Gii tool
|
// uncomment the following to enable the Gii tool
|
||||||
/*
|
|
||||||
'gii'=>array(
|
'gii'=>array(
|
||||||
'class'=>'system.gii.GiiModule',
|
'class'=>'system.gii.GiiModule',
|
||||||
'password'=>'Enter Your Password Here',
|
'password'=>'password',
|
||||||
// If removed, Gii defaults to localhost only. Edit carefully to taste.
|
// If removed, Gii defaults to localhost only. Edit carefully to taste.
|
||||||
'ipFilters'=>array('127.0.0.1','::1'),
|
'ipFilters'=>array('127.0.0.1','::1'),
|
||||||
),
|
),
|
||||||
*/
|
|
||||||
),
|
),
|
||||||
|
|
||||||
// application components
|
// application components
|
||||||
@ -47,19 +47,19 @@ return array(
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
*/
|
*/
|
||||||
'db'=>array(
|
/*'db'=>array(
|
||||||
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
|
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
|
||||||
),
|
),*/
|
||||||
// uncomment the following to use a MySQL database
|
// uncomment the following to use a MySQL database
|
||||||
/*
|
|
||||||
'db'=>array(
|
'db'=>array(
|
||||||
'connectionString' => 'mysql:host=localhost;dbname=testdrive',
|
'connectionString' => 'mysql:host=localhost;dbname=intranet_dev',
|
||||||
'emulatePrepare' => true,
|
'emulatePrepare' => true,
|
||||||
'username' => 'root',
|
'username' => 'root',
|
||||||
'password' => '',
|
'password' => '',
|
||||||
'charset' => 'utf8',
|
'charset' => 'utf8',
|
||||||
),
|
),
|
||||||
*/
|
|
||||||
'errorHandler'=>array(
|
'errorHandler'=>array(
|
||||||
// use 'site/error' action to display errors
|
// use 'site/error' action to display errors
|
||||||
'errorAction'=>'site/error',
|
'errorAction'=>'site/error',
|
||||||
|
|||||||
@ -7,11 +7,13 @@ return CMap::mergeArray(
|
|||||||
'fixture'=>array(
|
'fixture'=>array(
|
||||||
'class'=>'system.test.CDbFixtureManager',
|
'class'=>'system.test.CDbFixtureManager',
|
||||||
),
|
),
|
||||||
/* uncomment the following to provide test database connection
|
|
||||||
'db'=>array(
|
'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