[英]using kohana url rewrite
I know that kohana inteprets the url like 我知道kohana会像
/controller/method/variable/etc..
is there a way to make it intepret it as 有没有办法使其解释为
/variable/controller/method/etc..
Change the default route to this in your bootstrap.php
: 在
bootstrap.php
中将默认路由更改为此:
Route::set('default', '(<variable>/<controller>(/<action>(/<id>)))')
->defaults(array(
'controller' => 'main',
'action' => 'index',
));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.