I have hmvc setup and working fine,
I have a gallery module.
The gallery module breaks down into three controllers and it's structure is as follows:
/modules/gallery/
/modules/gallery/config/
/modules/gallery/helpers/
/modules/gallery/controllers/
/modules/gallery/controllers/gallery.php
/modules/gallery/controllers/galleries.php
/modules/gallery/controllers/images.php
/modules/gallery/models/
/modules/gallery/models/galleriesmodel.php
/modules/gallery/models/imagesmodel.php
/modules/gallery/views/dashboard.tpl
/modules/gallery/views/galleries/dashboard.tpl
/modules/gallery/views/images/dashboard.tpl
anyway, I have a function inside my images.php
controller called list_items
So I want to map the url
http://example.com/gallery/images/list to
http://example.com/gallery/images/list_items
So I thought, sweet as,
I will just add a /modules/gallery/config/routes.php
with the route inside it.
But it seems the routes are not being included.
The routes from /application/config/routes.php
are included and if I put a die('loaded')
in the module routes.php
the it does kill the script,
But running
print_r($this->router)
from one of the controllers does not show up any of the routes from the module routes.php
.
What's going on here?