thinkphp常用Config.php配置项

<?php
return array(
//'配置项'=>'配置值'
    'DB_HOST' => 'localhost',
    'DB_USER' => 'root',
    'DB_PWD'  => '',
    'DB_NAME' => 'think',
    'DB_PREFIX' => 'hd_',//表前缀
    'URL_MODEL' => 1,  //  为0时:/index.php?m=Index&a=index    值为2时 Rewright  重写没有了前面的index.php部分
    //'URL_MODEL' => 1,   //   /index.php/Index/index.html 
    //'URL_HTML_SUFFIX' => 'JSP' //更改URL后缀名称
);


?>
$config = array(
	'TMPL_PARSE_STRING' => array(
	'__PUBLIC__' => __ROOT__ . '/' . APP_NAME . '/Tpl/Public' //改变模板文件路径
	),
);

return array_merge(include './Conf/config.php',$config);//合并公共config.php和$config变量

  

posted @ 2015-11-18 12:25  虚幻的街景  阅读(323)  评论(0编辑  收藏  举报