CodeIgniter Forums
Problem with sub-directories - 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: Problem with sub-directories (/showthread.php?tid=17504)



Problem with sub-directories - El Forum - 04-07-2009

[eluser]grisha[/eluser]
Hello.

I'm working on a quite huge application that requires a very large directory structure. While creating some directories I've put my 'Payments' controller in a directory

Quote:controllers/admin/customers/payments.php

and it doesn't work. The log tells me, that tle 'admin/customers/' doesn't exist, while it surely does. When I move the 'Payments' controller to the parent directory

Quote:controllers/admin/payments.php

It works just fine... It looks like there can be only two sub-directories to reach the controller, or I'm doing something wrong... There is no way I could make a URL typing error, or an error in naming the directories...

What's with it?


Problem with sub-directories - El Forum - 04-07-2009

[eluser]umefarooq[/eluser]
Hi for your problem use Modular Extensions - HMVC it will help you to solve your problem here is the link

http://codeigniter.com/wiki/Modular_Extensions_-_HMVC/

you can create admin panel try it

you have to create modules directory in application directory and than u can create admin directory in it and than put controller model and view directories in it and than you payment.php file in cotroller

here is directory structure

applications
---modules
----admin
|___ controller
|___ model
|___ view
for any problem just ask you questions here


Problem with sub-directories - El Forum - 04-07-2009

[eluser]grisha[/eluser]
Everything looks fine, until I put the MY_Language library in the app/lib folder. After I do that and execute the script, I get:

Quote:Fatal error: Call to undefined function get_instance() in [...]\system\libraries\Language.php on line 63

The rest seems to work just fine, but the Language Class is essential to the project Smile