I know that there are countless threads about this, but I would appreciate a quick pointer to explain what I am missing here. I have a controller called Controller_Index_Orders
which resides in /conroller/orders/index.php
. It has one method action_index()
. I then have the following Route code for it:
Route::set('orders', 'orders(/<action>)')
->defaults(array(
'controller' => 'orders',
'action' => 'index',
));
When I go to baseUrl/orders/
or baseUrl/orders
I am getting a 404. What am I missing here?
EDIT:
Controller_Orders is now in /controllers/orders.php Route as follows:
Route::set('orders', 'orders(/<action>)')
->defaults(array(
'controller' => 'orders',
'action' => 'index',
));
Going to baseUrl/orders or baseUrl/orders/ still not functioning.
EDIT2:
Default Route.
Route::set('default', '((/(/)))') ->defaults(array( 'controller' => 'index', 'action' => 'index', ));