Open GoogleCodeExporter opened 9 years ago
// 不初始化路由表则使用默认配置如下
$config['router.routing_table'] = array(
'pattern' => ":module/:action/*", // 匹配模板
'default' => array('module' => 'default', // 默认值
'action' => 'index' // 默认值
),
'reqs' => array('module' => '[a-zA-Z0-9\.\-_]+', // 正则匹配
'action' => '[a-zA-Z0-9\.\-_]+' // 正则匹配
),
'varprefix' => ':', // 识别变量的前缀
'delimiter' => '/', // 分隔符
'postfix' => '', // url后缀
'protocol' => 'PATH_INFO', // STANDARD REWRITE PATH_INFO
);
Original comment by zhao5908@gmail.com
on 26 Mar 2010 at 1:18
Original issue reported on code.google.com by
gxd...@gmail.com
on 15 Mar 2010 at 2:31