开发者

using kohana url rewrite

I know that kohana inteprets the url like

/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:

Route::set('default', '(<variable>/<controller>(/<action>(/<id>)))')
->defaults(array(
    'controller' => 'main',
    'action'     => 'index',
));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜