~horux-dev/horux-webcli/thfo

« back to all changes in this revision

Viewing changes to yii/framework/cli/views/webapp/protected/config/main.php

  • Committer: Thierry Forchelet
  • Date: 2011-02-25 13:30:15 UTC
  • Revision ID: thierry.forchelet@letux.ch-20110225133015-zxyj9w7sqv8ly971
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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'=>'My Web Application',
 
11
 
 
12
        // preloading 'log' component
 
13
        'preload'=>array('log'),
 
14
 
 
15
        // autoloading model and component classes
 
16
        'import'=>array(
 
17
                'application.models.*',
 
18
                'application.components.*',
 
19
        ),
 
20
 
 
21
        'modules'=>array(
 
22
                // uncomment the following to enable the Gii tool
 
23
                /*
 
24
                'gii'=>array(
 
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'),
 
29
                ),
 
30
                */
 
31
        ),
 
32
 
 
33
        // application components
 
34
        'components'=>array(
 
35
                'user'=>array(
 
36
                        // enable cookie-based authentication
 
37
                        'allowAutoLogin'=>true,
 
38
                ),
 
39
                // uncomment the following to enable URLs in path-format
 
40
                /*
 
41
                'urlManager'=>array(
 
42
                        'urlFormat'=>'path',
 
43
                        'rules'=>array(
 
44
                                '<controller:\w+>/<id:\d+>'=>'<controller>/view',
 
45
                                '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
 
46
                                '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
 
47
                        ),
 
48
                ),
 
49
                */
 
50
                'db'=>array(
 
51
                        'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
 
52
                ),
 
53
                // uncomment the following to use a MySQL database
 
54
                /*
 
55
                'db'=>array(
 
56
                        'connectionString' => 'mysql:host=localhost;dbname=testdrive',
 
57
                        'emulatePrepare' => true,
 
58
                        'username' => 'root',
 
59
                        'password' => '',
 
60
                        'charset' => 'utf8',
 
61
                ),
 
62
                */
 
63
                'errorHandler'=>array(
 
64
                        // use 'site/error' action to display errors
 
65
            'errorAction'=>'site/error',
 
66
        ),
 
67
                'log'=>array(
 
68
                        'class'=>'CLogRouter',
 
69
                        'routes'=>array(
 
70
                                array(
 
71
                                        'class'=>'CFileLogRoute',
 
72
                                        'levels'=>'error, warning',
 
73
                                ),
 
74
                                // uncomment the following to show log messages on web pages
 
75
                                /*
 
76
                                array(
 
77
                                        'class'=>'CWebLogRoute',
 
78
                                ),
 
79
                                */
 
80
                        ),
 
81
                ),
 
82
        ),
 
83
 
 
84
        // application-level parameters that can be accessed
 
85
        // using Yii::app()->params['paramName']
 
86
        'params'=>array(
 
87
                // this is used in contact page
 
88
                'adminEmail'=>'webmaster@example.com',
 
89
        ),
 
90
);
 
 
b'\\ No newline at end of file'