[eluser]alexdemers[/eluser]
Hey, really new to the community and Code Igniter. To date, Code Igniter is really awesome. I have been able to do _almost_ what I what except for this. I want to be able to pass in parameters to my index() method of my controller but it seems to not work when I do not type in explicitly "index/" in the address bar.
This works: /items/index/category:3/brand:4/
This is not working: /items/category:3/brand:4/
I get a
404 Page Not Found error when trying to access the second URI.
In my index() method, I use func_get_args to get the arguments, so the real declaration is:
Code:
function index()
{
}
The basic functionality for this is the Items controller gets all the items in a table and the parameters are actually filters.
Am I doing something wrong or this is not the approach I should go for?
Thanks!