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?