zoukankan      html  css  js  c++  java
  • 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变量
    

      

  • 相关阅读:
    最小路径
    零钱兑换
    硬币
    三步问题
    区域和检索
    除数博弈
    URI和URL的辨别
    交叉编译OpenMP
    牛客挑战赛44D-数列的和
    CF1408H. Rainbow Triples
  • 原文地址:https://www.cnblogs.com/xtmp/p/4974123.html
Copyright © 2011-2022 走看看