Reputation: 472
I have a problem when I call a function/controller
$route['admin/refresh_rss'] = "index.php/rss/index";
I read the problem is about the config/database.php, but, all is OK, the page load correctly, but when I want execute the controller, show Fatal Error
Upvotes: 1
Views: 4365
Reputation: 4265
When configuring routes in CodeIgniter, the path does not require the index.php
part.
In this case it's going to try and look for the controller 'Index.php', the action 'rss' and pass through the parameter 'index'.
You should change your route to be:
$route['admin/refresh_rss'] = "rss/index";
Edit Here's the CodeIgniter routing manual
Upvotes: 2