CodeIgniter Forums
using subfolder in controller - 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: using subfolder in controller (/showthread.php?tid=28473)



using subfolder in controller - El Forum - 03-12-2010

[eluser]Murali krishna[/eluser]
Hi,

I am new to CI. I was trying to create an application in CI with Extjs with tab layout pages.

I wanted to organize my file in folders i tried the examples (MY_Router.php) but i am getting 404 page not found. :down:

can any one give me complete example how can i create a page in controllers & views using subfolder.

Thanks and regards
Murali krishna


using subfolder in controller - El Forum - 03-12-2010

[eluser]mohsin917[/eluser]
ya sure... Read this very basic and complete MVC (CI) Structure.

http://net.tutsplus.com/tutorials/php/codeigniter-basics/


using subfolder in controller - El Forum - 03-12-2010

[eluser]mohsin917[/eluser]
Also read CodeIgniter User Guide


using subfolder in controller - El Forum - 03-21-2010

[eluser]Murali krishna[/eluser]
But Creating a subfolder inside controllers folder is not successfully.
I was trying to create a huge application with CI and need the files to be organized.

Kindly help.

regards
Murali krishna .L


using subfolder in controller - El Forum - 03-22-2010

[eluser]xeroblast[/eluser]
add this in your routes.php

Code:
$route['name_of_folder'] = 'name_of_folder/controller_name';