Posted By

optimiseweb on 09/17/09


Tagged

php route kohana ko3


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

JSawo


Get the current route in Kohana 3


 / Published in: PHP
 

URL: http://forum.kohanaphp.com/comments.php?DiscussionID=3377&Focus=24323

  1. $routes = Route::all();
  2. $name = array_search($this->request->route, $routes);

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: optimiseweb on September 17, 2009

Maybe this works too.

$route = route::get('admin'); $uri = $route->uri($params);

Posted By: rafi on April 25, 2010

Much simpler,

echo Route::name($this->request->route);

You need to login to post a comment.