CodeIgniter Forums
Routers - 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: Routers (/showthread.php?tid=59440)



Routers - El Forum - 10-05-2013

[eluser]razerone[/eluser]
Hi in the route php in controller is there away that I do not have to add new rout every time I create a controller file.


Routers - El Forum - 10-05-2013

[eluser]jmadsen[/eluser]
that's the default behavior


Routers - El Forum - 10-05-2013

[eluser]razerone[/eluser]
Ok so if I have removed welcome.php and I have now controllers/common/header.php that is main one.

If I have controllers/common/footer.php and controllers/common/home.php would I still need to create new route each time. Or just replace the default route "welcome" with "common/header"


Routers - El Forum - 10-05-2013

[eluser]jmadsen[/eluser]
you don't write routes to view partials...I think you should give the beginning tutorial a go first, and prolly start posting some code


Routers - El Forum - 10-05-2013

[eluser]razerone[/eluser]
Thanks any way.

I am making my way through the tutorials now day by day. Watch a lot of you-tube videos on codeigniter also.