配置文件

配置文件为数组,用户可以自定义自己的配置,通过框架函数_config调用 示例如:

$GLOBALS['Common']= _config('Common');

然后通过$GLOBALS['Common'][ReWrite]取值为true

return array (

/*Common基本配置*/
'Common'=>array (

'ReWrite' =>false,

//是否进行URL重写,确保ReWirte模块开启,可实现伪静态,如www.framk.com/Article/execute/id/1.htm

'Debug' =>true, //
是否开启报错调试
'Session' =>true, //
是否打开Session会话
'IsCache' =>true, //
是否要进行数据缓存

'TplCompile' =>true, //是否要模板编译
'TplExt' =>'html',//
模板后缀
'Action' =>'Index', //
默认动作
'Method' =>'main', //
默认动作方法
'ExpireCTime' =>0, //
全局缓存时间,单位:秒

),

/*DB*
数据库配置/
'DB'=>array (
'Persistent'=>false,
'DBdriver' =>'Mysql',
'DBcharSet' => 'utf8',
'DBNamePre' => 'db_',
'TablePre' => 'tb_',
'DBport' => '3306',
'DBhost' => 'localhost',
'DBuser' => 'root',
'DBpsw' => '',
'DBname' => 'framk',
),
);