-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.php
39 lines (35 loc) · 829 Bytes
/
install.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
$config=array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'protected',
'sourceLanguage'=>'ru',
'modules'=>array(
'install',
),
'import'=>array(
'application.models.*',
'application.components.*',
),
'components'=>array(
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>true,
'rules'=>array(
'/'=>'install/default',
)),
'cache'=>array(
'class'=>'CDummyCache',
),
'languageManager'=>array(
'class'=>'SLanguageManager'
),
),
'params'=>array(),
);
error_reporting(0);
define('VERSION', '1.5');
// change the following paths if necessary
$yii=dirname(__FILE__).'/framework/yii.php';
//defined('YII_DEBUG') or define('YII_DEBUG', true);
//defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
require_once $yii;
Yii::createWebApplication($config)->run();