开发者

Routing in Kohana without changing URL

How can I re-rout execution to another controller开发者_开发技巧/action in Kohana PHP framework, w/o redirecting.


if you using default routing you can do this:

Request::factory('welcome/index2')->execute();

General case:

$this->request
    ->controller('welcome')
    ->action('index2')
    ->execute();

Or look at Request->execute()

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜