Can someone explain Kohana 3's routing system?
Posted
by alex
on Stack Overflow
See other posts from Stack Overflow
or by alex
Published on 2010-01-19T02:52:10Z
Indexed on
2010/06/01
19:33 UTC
Read the original article
Hit count: 179
In bootstrap.php, where you set routes, I'm having a hard time getting them to work. I read some documentation a while ago that I can't seem to find again that explains them. Here is one of my examples
Route::set('products', 'products/(type)', array('type' => '.+'))
->defaults(array(
'controller' => 'articles',
'action' => 'view_product',
'page' => 'shock-absorbers',
));
I thought that would mean a request like products/something would load up the articles controller, and the action_view_product method. But I can't get it to work.
Can someone please explain to me exactly how they work, and what all the method parameters are?
© Stack Overflow or respective owner