路由解析错误

浏览:273 发布日期:2010/09/17
- 普通 - 未处理
路由文件内容return array(
 'blog' => array('Index','blog','year,month,day','test=1'),
);
IndexAction控制器内容class IndexAction extends Action{
    public function index(){
        header("Content-Type:text/html; charset=utf-8");
        echo "^_^ Hello,欢迎使用ThinkPHP
";
    }
    function blog(){
     dump($_GET);
    }
}
当访问URL: http://abc.com/tp/blog/123/fsss/664 的时候, 路由应该分析成 执行blog路由
其中year=123, month=fsss, day=664 而结果却是. 如图一.
[local]1[/local]

图二:
[local]2[/local]
评论(
后面还有条评论,点击查看>>