From 335f1749576a5988b84ed99cff96585c4d9ce304 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 26 Jan 2012 11:48:45 +0000 Subject: [PATCH] =?UTF-8?q?-=20Activaci=C3=B3n=20herramienta=20Gii=20-=20C?= =?UTF-8?q?onexi=C3=B3n=20a=20BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_IntranetNueva/trunk@5 77cfc57b-8ef4-1849-9df6-4a38aa5da120 --- www/protected/config/console.php | 10 +++++----- www/protected/config/main.php | 16 ++++++++-------- www/protected/config/test.php | 8 +++++--- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/www/protected/config/console.php b/www/protected/config/console.php index 15c9353..1db393e 100644 --- a/www/protected/config/console.php +++ b/www/protected/config/console.php @@ -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', ), - */ + ), ); \ No newline at end of file diff --git a/www/protected/config/main.php b/www/protected/config/main.php index 9e840e4..b22f04d 100644 --- a/www/protected/config/main.php +++ b/www/protected/config/main.php @@ -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', diff --git a/www/protected/config/test.php b/www/protected/config/test.php index fd7085a..344ea5a 100644 --- a/www/protected/config/test.php +++ b/www/protected/config/test.php @@ -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', ), - */ ), ) );