3
// uncomment the following to define a path alias
4
// Yii::setPathOfAlias('local','path/to/local-folder');
6
// This is the main Web application configuration. Any writable
7
// CWebApplication properties can be configured here.
9
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
10
'name'=>'My Web Application',
12
// preloading 'log' component
13
'preload'=>array('log'),
15
// autoloading model and component classes
17
'application.models.*',
18
'application.components.*',
22
// uncomment the following to enable the Gii tool
25
'class'=>'system.gii.GiiModule',
26
'password'=>'Enter Your Password Here',
27
// If removed, Gii defaults to localhost only. Edit carefully to taste.
28
'ipFilters'=>array('127.0.0.1','::1'),
33
// application components
36
// enable cookie-based authentication
37
'allowAutoLogin'=>true,
39
// uncomment the following to enable URLs in path-format
44
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
45
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
46
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
51
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
53
// uncomment the following to use a MySQL database
56
'connectionString' => 'mysql:host=localhost;dbname=testdrive',
57
'emulatePrepare' => true,
63
'errorHandler'=>array(
64
// use 'site/error' action to display errors
65
'errorAction'=>'site/error',
68
'class'=>'CLogRouter',
71
'class'=>'CFileLogRoute',
72
'levels'=>'error, warning',
74
// uncomment the following to show log messages on web pages
77
'class'=>'CWebLogRoute',
84
// application-level parameters that can be accessed
85
// using Yii::app()->params['paramName']
87
// this is used in contact page
88
'adminEmail'=>'webmaster@example.com',
b'\\ No newline at end of file'