EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
main.php
Go to the documentation of this file.
1 <?php
2 
3 // uncomment the following to define a path alias
4 // Yii::setPathOfAlias('local','path/to/local-folder');
5 
6 // This is the main Web application configuration. Any writable
7 // CWebApplication properties can be configured here.
8 return array(
9  'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
10  'name'=>'EliteConf',
11  //'theme'=>'classic',
12  'theme'=>'mattskitchen',
13 
14 
15  // preloading 'log' component
16  'preload'=>array('log'),
17 
18  // autoloading model and component classes
19  'import'=>array(
20  'application.models.*',
21  'application.components.*',
22  'application.controllers.*',
23  ),
24 
25  'modules'=>array(
26  // uncomment the following to enable the Gii tool
27 
28  'gii'=>array(
29  'class'=>'system.gii.GiiModule',
30  'password'=>'password',
31  // If removed, Gii defaults to localhost only. Edit carefully to taste.
32  'ipFilters'=>array('127.0.0.1','::1'),
33  ),
34 
35  ),
36 
37  // application components
38  'components'=>array(
39  'user'=>array(
40  // enable cookie-based authentication
41  'allowAutoLogin'=>true,
42  ),
43  // uncomment the following to enable URLs in path-format
44  /*
45  'urlManager'=>array(
46  'urlFormat'=>'path',
47  'rules'=>array(
48  '<controller:\w+>/<id:\d+>'=>'<controller>/view',
49  '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
50  '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
51  ),
52  ),
53  */
54  /*
55  'db'=>array(
56  'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
57  ),
58  */
59  // uncomment the following to use a MySQL database
60 
61  'db'=>array(
62  'connectionString' => 'mysql:host=localhost;dbname=yii_tour',
63  'emulatePrepare' => true,
64  'username' => 'root',
65  'password' => '',
66  'charset' => 'utf8',
67  ),
68 
69  'errorHandler'=>array(
70  // use 'site/error' action to display errors
71  'errorAction'=>'site/error',
72  ),
73  'log'=>array(
74  'class'=>'CLogRouter',
75  'routes'=>array(
76  array(
77  'class'=>'CFileLogRoute',
78  'levels'=>'error, warning',
79  ),
80  // uncomment the following to show log messages on web pages
81  /*
82  array(
83  'class'=>'CWebLogRoute',
84  ),
85  */
86  ),
87  ),
88  ),
89 
90  // application-level parameters that can be accessed
91  // using Yii::app()->params['paramName']
92  'params'=>array(
93  // this is used in contact page
94  'adminEmail'=>'webmaster@example.com',
95  ),
96 );