2 Answers
2

Essentially when someone will browse to yoursite.com/manufacturer - the manufacturer controller will be called, and since an action isn't defined - it will default to index. So what you could do is just:

Now when someone browses to yoursite.com/manufacturer - the request is forwarded to the categories controller, calling the view action. The '/*' insures any further parameters are also forwarded there.

So when someone were to visit yoursite.com/manufacturer/iamfriendly/iamfriendlytoo - you can then get those passed paramaters / variables through

$this->params['pass']

Or:

$this->passedArgs

Giving you the following array:

Array
(
[0] => iamfriendly
[1] => iamfriendlytoo
)

You can further enhance this by using named parameters, so you receive something like:

If you pass them the way you do it right now, it will be a variable number of arguments in your view() function. Look in pages_controller to see how it handles that. But I would suggest using named arguments instead.