<?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变量