A BUG ... or is it correct in doing this?
CI: 2.0.3
HMVC: 5.4
Folder Structure:
root
—application
——modules
———entries (module name)
————entries.php (controller name)
The entries.php controller
Inside my entries.php controller there is only the index method
/**
* index
*
* @return void
*/
public function index($id = 0)
{
echo '<h1>SHOW ENTRY ID: '.$id.'</h1>';
}This url will throw a 404
mywebsite.com/entries/id-1
As the Controller name matches the Module name and the Index method is what I am looking to call, should the above work or is it correct in throwing the 404 and routing is required for this scenario?
For example:
$route['entries/(:any)'] = 'entries/index/$1';Adding the above route resolves the issue, but I would have thought routing was not needed at all?