Can someone explain Kohana 3's routing system?

zdlryretjx

New Member
In \[code\]bootstrap.php\[/code\], 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\[code\]Route::set('products', 'products/(type)', array('type' => '.+')) ->defaults(array( 'controller' => 'articles', 'action' => 'view_product', 'page' => 'shock-absorbers', ));\[/code\]I thought that would mean a request like \[code\]products/something\[/code\] would load up the \[code\]articles\[/code\] controller, and the \[code\]action_view_product()\[/code\] 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?
 
Back
Top