Added DB Access + Error page
This commit is contained in:
21
demos/phonebook/protected/config/main.php
Normal file
21
demos/phonebook/protected/config/main.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
// This is the main Web application configuration. Any writable
|
||||
// application properties can be configured here.
|
||||
return array(
|
||||
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
|
||||
'name'=>'Yii Framework: Phone Book Demo',
|
||||
|
||||
// autoloading model and component classes
|
||||
'import'=>array(
|
||||
'application.models.*',
|
||||
'application.components.*',
|
||||
),
|
||||
|
||||
// application components
|
||||
'components'=>array(
|
||||
'db'=>array(
|
||||
'connectionString'=>'sqlite:protected/data/phonebook.db',
|
||||
),
|
||||
),
|
||||
);
|
||||
Reference in New Issue
Block a user