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



URL Confusion - El Forum - 02-22-2010

[eluser]Funky Fresh[/eluser]
Hey Hey,

I have started building my app and are quite confused about something.

I have read the user guide, but am still not getting my head around it .. maybe someone can clear things up for me.

Im using the URL helper as well and i was wondering how the URL's are created is it via the controller/function name, or is it the view?

Ok, so i have the following.

Quote:Controller = blapblap.php
Function inside Controller = bollocks()
View thats loaded from in the function = $this->load->view('yoda', $data);

So ... from that logic the URL should be http://www.site.com/yoda right or is is http://www.site.com/blapblap/bollocks

If the second one is right, how do i get it so that the URL would just be http://www.site.com/yoda

If that makes sense

Cheers Smile


URL Confusion - El Forum - 02-22-2010

[eluser]rogierb[/eluser]
Dude, that is one of the most basic questions answered in the awesome userguide: http://ellislab.com/codeigniter/user-guide/general/urls.html

Take a look aswell: http://ellislab.com/codeigniter/user-guide/general/routing.html