David
David

Reputation: 3310

Routing in Kohana without changing URL

How can I re-rout execution to another controller/action in Kohana PHP framework, w/o redirecting.

Upvotes: 0

Views: 171

Answers (1)

SET001
SET001

Reputation: 11728

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()

Upvotes: 1

Related Questions