CodeIgniter Forums
Bug creating controllers - 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: Bug creating controllers (/showthread.php?tid=35226)



Bug creating controllers - El Forum - 10-22-2010

[eluser]wallysson[/eluser]
Hi to everyone,
i would like to create an controller inside 3 folder, example

applicantion
|
--- Controller
|
---system
|
---Business
|
My CONTROLLER HERE

Thats the hyerarchy i want... but the system is saynt to me that don`t found the reference, its a bug?

Maybe have other way to make it, someone could help me here...?


Bug creating controllers - El Forum - 10-22-2010

[eluser]wallysson[/eluser]
I was testing somethings here, and i was seeing tha CI, its viewing the second segment as an controller, but it is an folder...

Someone know how to make this working?


Bug creating controllers - El Forum - 10-23-2010

[eluser]WanWizard[/eluser]
You can only add one folder level.

You controllers are either in application/controllers, or in application/controllers/foldername. You can't go deeper.

If you want more granularity, maybe you should look at the modularity solutions available.


Bug creating controllers - El Forum - 10-23-2010

[eluser]wiredesignz[/eluser]
There is a solution to this somewhere in the CI wiki. I don't see the point myself, but do remember someone posting it.


Bug creating controllers - El Forum - 10-23-2010

[eluser]wallysson[/eluser]
Well, it isn`t a real bug... But thanks 4 the help. I will use only one folder, it isn`t an problemm at all... The system just should be more inteligent to know what is a folder and what is an real Controller...


Bug creating controllers - El Forum - 10-25-2010

[eluser]wiredesignz[/eluser]
Or maybe developers should realize a framework like CI is not used properly if URL's are based on directory names as you might have done in procedural PHP applications.