以下内容来自于http://blog.youkuaiyun.com/happy_jijiawei:
1.common 下的conf 下的config.php
// 加载自定义扩展配置文件
'MODULE_ALLOW_LIST' => array('Home','Admin','User'),
2.home 下的conf下的config.php
// 加载自定义扩展配置文件
'LOAD_EXT_CONFIG' => 'url',
3.home 下的conf下的url.php
<?php
// 关于url地址的相关配置
return array(
// 开启路由,重新映射,将url简单化
'URL_ROUTER_ON' => true,
'URL_ROUTE_RULES'=>array(
':c_id\d' =>'index.php/Home/content/one',
':column' =>'index.php/Home/content/type',
// 'new/:id\d' => 'News/read',
// /Home/new/8
// /Home/News/read/id/8
),
//栏目英文对应的Id号
'url_the' => array(
'xg' => 8,
'jp' => 7
),
'URL_MAP_RULES' => array(
'show_all' =>'index.php/Home/content/show_all',
'hout' =>'index.php/Admin/Login/login',
),
);
欲知更多信息,请咨询本文博主……