EliteConf
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
test
protected
config
console.php
Go to the documentation of this file.
1
<?php
2
3
// This is the configuration for yiic console application.
4
// Any writable CConsoleApplication properties can be configured here.
5
return
array(
6
'basePath'
=>dirname(__FILE__).DIRECTORY_SEPARATOR.
'..'
,
7
'name'
=>
'My Console Application'
,
8
9
// preloading 'log' component
10
'preload'
=>array(
'log'
),
11
12
// application components
13
'components'
=>array(
14
'db'
=>array(
15
'connectionString'
=>
'sqlite:'
.dirname(__FILE__).
'/../data/testdrive.db'
,
16
),
17
// uncomment the following to use a MySQL database
18
/*
19
'db'=>array(
20
'connectionString' => 'mysql:host=localhost;dbname=testdrive',
21
'emulatePrepare' => true,
22
'username' => 'root',
23
'password' => '',
24
'charset' => 'utf8',
25
),
26
*/
27
'log'
=>array(
28
'class'
=>
'CLogRouter'
,
29
'routes'
=>array(
30
array(
31
'class'
=>
'CFileLogRoute'
,
32
'levels'
=>
'error, warning'
,
33
),
34
),
35
),
36
),
37
);
Generated on Sun Jun 2 2013 05:35:37 for EliteConf by
1.8.4