![]() |
Modular Separation Mixed with main controller folder having sub folders - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Modular Separation Mixed with main controller folder having sub folders (/showthread.php?tid=56851) Pages:
1
2
|
Modular Separation Mixed with main controller folder having sub folders - El Forum - 01-25-2013 [eluser]xtremer360[/eluser] I don't know where to go to from here. As of right now I have the following file system. I also have included below a MY_Router.php file code. My question is asking if anyone thinks I should be handling the controllers differently because of the two MY_Router files I have. I don't have any modules yet so I just created some dummy modules for this post. Code: /application This was my original MY_Router.php file that I still have loaded that was used so I could organize a few controllers into sub folders. Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Modular Separation Mixed with main controller folder having sub folders - El Forum - 01-25-2013 [eluser]wiredesignz[/eluser] [quote author="xtremer360" date="1359103247"]... two MY_Router files I have... Code: /application WTF? You cannot have two files with the same file name in the same directory. Modular Separation Mixed with main controller folder having sub folders - El Forum - 01-25-2013 [eluser]xtremer360[/eluser] Okay well anymore anything else because that doesn't help me any. Modular Separation Mixed with main controller folder having sub folders - El Forum - 01-25-2013 [eluser]Aken[/eluser] Putting a controller file into a single-level subfolder is allowed by default in 2.1.3 and at least a couple previous versions. So if your router is allowing only that functionality, then it is completely unnecessary. Beyond that, I have never used HMVC, so I have no idea what would conflict or how it works by default. Modular Separation Mixed with main controller folder having sub folders - El Forum - 01-25-2013 [eluser]xtremer360[/eluser] Still looking for more help on the subject. Modular Separation Mixed with main controller folder having sub folders - El Forum - 01-25-2013 [eluser]xtremer360[/eluser] Any additional ideas? Modular Separation Mixed with main controller folder having sub folders - El Forum - 01-25-2013 [eluser]Aken[/eluser] Honestly, man, you have SO much going on here, it's almost impossible for us to be able to narrow anything down with everything you've added and changed to CI. You'd probably be better off hiring someone to take a look directly. Modular Separation Mixed with main controller folder having sub folders - El Forum - 01-25-2013 [eluser]xtremer360[/eluser] I was hoping anyone had an idea. Modular Separation Mixed with main controller folder having sub folders - El Forum - 01-25-2013 [eluser]Aken[/eluser] Actually, looking back, you haven't even said what problem you're having, if any. You just said "if anyone has any ideas". That's even more difficult to figure out what you want. You need to get rid of one of the MY_Router files, though. That just isn't going to work, and no one can help you do anything if that stays like that. So figure that out, and then come back and explain in better detail what you need help with. Modular Separation Mixed with main controller folder having sub folders - El Forum - 01-25-2013 [eluser]xtremer360[/eluser] Well the setup of the files is what I'm mainly focused on. Because I will be working with modules but I also need to take into account login and just the dashboard by itself and registration. Do I put those separately into the applications/controllers folder or make modules out of those or something. After looking around I haven't sen anyone post anything about their setups when its used. |