-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
33 lines (29 loc) · 1.01 KB
/
config.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
<?php
$product = new stdClass();
/*core*/
//$product->app->view = 'Smarty';
$product->app->router->directory = array( "admin" ); /* 加入其他命名空间下的 controller 和 action */
$product->app->error_log = APP_PATH . '/logs/error.log';
/**
* 可以不设置 如果不设置 则自动读取 Server["HOST"]
*/
$product->app->domain = "localhost";
/*database*/
$product->db->driver = 'mysql';
$product->db->database = 'mysql';
$product->db->host = '127.0.0.1';
$product->db->user = 'weflex_dingen';
$product->db->password = 'dingen';
$product->db->port = 3306;
/*Smarty*/
$product->smarty->template_dir= APP_PATH . '/app/views';
$product->smarty->compile_dir= APP_PATH . '/temp';
$product->smarty->cache_dir= APP_PATH . '/temp';
$product->smarty->cache_lifetime= 0;
$product->smarty->left_delimiter= '{';
$product->smarty->right_delimiter= '}';
$product->smarty->auto_literal= false;
$product->smarty->compress= true;
$develop = clone $product;
$develop->db->host = '127.0.0.1';
$develop->smarty->cache_life_time= 0;