URL Confusion

[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

Dude, that is one of the most basic questions answered in the awesome userguide: http://ellislab.com/codeigniter/user-gui.../urls.html

Take a look aswell: http://ellislab.com/codeigniter/user-gui...uting.html

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.