【发布时间】:2014-02-11 15:58:40
【问题描述】:
我定义了一个Route 用于对控制器路由进行分组,并在使用此URL 之后:
http://localhost/alachiq/public/admin/profile
它可以显示个人资料视图。但如果用户输入:
http://localhost/alachiq/public/admin/profile/
重定向到http://localhost/admin/profile,我收到此错误:
Not Found
The requested URL /admin/profile was not found on this server.
Apache/2.4.6 (Debian) Server at localhost Port 80
如何在控制器中使用通配符?
我的路线:
Route::group(array('prefix'=> 'admin' ,'before'=>'auth'), function(){
Route::controller('profile', 'ProfileController',array('getIndex'=>'profile.index', 'postUpdate'=>'profile.update'));
});
【问题讨论】: