[eluser]loathsome[/eluser]
Hello,
I have a function in the "main" controller that looks like this:
function category($cat)
When I access the url: example.com/main/category/random everything works flawlessly. Though, I'm trying to strip away the "main"-part of the page. So I set up a route that looks like this:
$route['category/:any'] = 'main/category';. Now, when I go to
example.com/category/random it doesn't read the uri segment ($cat) and I get
Quote:Message: Missing argument 1 for Main::category()
Filename: controllers/main.php
What am I doing wrong? Thanks!