Nested sub-controller folder/directory AND using a3m marshmallow module PLEASE, NEED HELP!!! |
[eluser]boltsabre[/eluser]
Hi guys, Been trying for hours to be able to use sub directories in my controllers, found lots of information, but couldn't get it to work. (example solution: http://ellislab.com/forums/viewthread/202176/) I realised that it's because I'm using the a3m marshmallow module, which is already extending the CI_Router class. Does anyone know how I can use controller sub-dir's AND a3m marshallow? Sorry if it's a stupid question, I've been up all night working to a deadline I'm having a brain fade (my OOP isn't great) :-( a3m already has extended the core Router class as such: Code: <?php (defined('BASEPATH')) OR exit('No direct script access allowed'); Which is extending upon: Code: <?php (defined('BASEPATH')) OR exit('No direct script access allowed'); If anyone has a fix for this I'd be extremely greatful!!!
[eluser]boltsabre[/eluser]
No one...??? I'm pretty sure the problem is with this piece of code: Code: /* application sub-directory controller exists? */
[eluser]EC[/eluser]
If you add Modular Extensions to allow HMVC, A3M will drop right in as a module, and you can then use separate MVC modules. It's very easy to do. Then each controller or module has it's own directories. Don't know if you are interested in using Modular Extensions, but it does add very nice features. Hope that helps. Edmund
[eluser]jakub[/eluser]
Not sure if it helps with your issue, but just an FYI, I've updated the A3M code, latest release (with new fixes + CI update) is called A3M - PB&J (running on CI2.1.2) https://github.com/pengkong/A3M-for-CodeIgniter-2.0 |
Welcome Guest, Not a member yet? Register Sign In |