How to make Phill Sturgeon's modular approach using HMVC to work? |
[eluser]Unknown[/eluser]
What I want to do is this ( the 3rd method ): http://philsturgeon.co.uk/blog/2009/07/C...odeIgniter But two or more loaded controllers with the same name “admin” are not working in HMVC in CodeIgniter. Maybe Phill was using Matchbox but in HMVC it seems not to work as in his article. My modules structure looks like this: Code: modules The admin controller looks like: Code: class Admin extends Backend_Controller { Code: <?php echo Modules::run('categories/admin/menu'); ?> However this works: Code: <?php echo Modules::run('categories/categories'); ?> Any idea how could I make it work in CodeIgniter? I have found out that if I change my controller name from "admin" to something else e.g. "blablacontroller" it magically starts working. I have already another module called "admin" so I think could be a problem. How can I use multiple controllers called admin.php? I want some good repeating structure for every module and not different name for every module's admin controller. Any idea how to solve this situation is welcome.
|
Welcome Guest, Not a member yet? Register Sign In |