I'd like some help please. I'm using HMVC modularity from wiredesignz and my folder structure looks like this
Code:
- application
---- modules
------- test
---------- controllers
---------------- Admin.php
---------------- Some_front_controller.php
---------- models
---------------- Some_model.php
---------- views
---------------- some_view.php
I have also set up the routes for "admin" pages like this:
PHP Code:
$route['admin/([a-zA-Z_-]+)/(:any)'] = '$1/admin/$2';
$route['admin/([a-zA-Z_-]+)/(:any)/(:num)'] = '$1/admin/$2/$3';
$route['admin/login'] = 'admin/login';
$route['admin/logout'] = 'admin/logout';
$route['admin/([a-zA-Z_-]+)'] = '$1/admin/index';
$route['admin'] = 'admin';
so basically the uri_string looks something like this
Code:
admin/test/method/param
Inside the Admin.php I have some methods I'd like to separate them from this, BUT NOT having them in a different module folder. Is it possible to create a sub folder and place them inside there? something like this
Code:
- application
---- modules
------- test
---------- controllers
---------------- sub_directory
------------------------- Admin.php (??? name of the file ???)
---------------- Admin.php
so the uri would be something like this
Code:
admin/test/sub_directory/method/param
Has anyone tried something similar before? If so, do I also have to name the file Admin.php again, or this will cause conflicts ? How do I have to set the routes in this case ?