Added DB Access + Error page
This commit is contained in:
25
demos/blog/protected/config/test.php
Normal file
25
demos/blog/protected/config/test.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
return CMap::mergeArray(
|
||||
require(dirname(__FILE__).'/main.php'),
|
||||
array(
|
||||
'components'=>array(
|
||||
'fixture'=>array(
|
||||
'class'=>'system.test.CDbFixtureManager',
|
||||
),
|
||||
'db'=>array(
|
||||
'connectionString'=>'sqlite:'.dirname(__FILE__).'/../data/blog-test.db',
|
||||
),
|
||||
// uncomment the following to use a MySQL database
|
||||
/*
|
||||
'db'=>array(
|
||||
'connectionString' => 'mysql:host=localhost;dbname=blog-test',
|
||||
'emulatePrepare' => true,
|
||||
'username' => 'root',
|
||||
'password' => '',
|
||||
'charset' => 'utf8',
|
||||
),
|
||||
*/
|
||||
),
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user