开发者

Routing in Kohana without changing URL

开发者 https://www.devze.com 2023-04-07 06:27 出处:网络
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:

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

精彩评论

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

关注公众号