CodeIgniter Forums
Controllers in subdirectory - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Controllers in subdirectory (/showthread.php?tid=6958)



Controllers in subdirectory - El Forum - 03-18-2008

[eluser]AndyBrandy[/eluser]
Hello,

i want develped my project into few versions, and i need open controllers from controller folder subfolders.. Can somebody help how i can do this? Thx


Controllers in subdirectory - El Forum - 03-18-2008

[eluser]Tom Glover[/eluser]
[quote author="AndyBrandy" date="1205895734"]Hello,

i want develped my project into few versions, and i need open controllers from controller folder subfolders.. Can somebody help how i can do this? Thx[/quote]

this is simple to do, you can just call the controller in the normall way but with the subdirectory in front of it.

For example:

file: Controller/filename.php
calling method: http://localhost/index.php/filename

file: Controller/folder/filename.php
calling method: http://localhost/index.php/folder/filename