原始地址
http://www.abcd.com/index/blog/bloglist;
http://www.abcd.com/index/blog/view;
http://www.abcd.com/index/blog/add;
我路由的分组写法:
return [ '[blog]' => [ ':id' => ['index/blog/view',['method'=>'get'],['id'=>'\d+']], ':name' => ['index/blog/add',['method'=>'get'],['name'=>'[a-zA-z]+']], '/' =>['index/blog/bloglist' , ['method'=>'get']] ], ];
当访问http://www.abcd.com/blog/add的时候为什么 会显示http://www.abcd.com/blog;的页面;
麻烦详细讲解下.自己自学PHP 基础有点差麻烦了!
pardon110