CodeIgniter Forums
cotroller adressing problems - 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: cotroller adressing problems (/showthread.php?tid=41657)



cotroller adressing problems - El Forum - 05-13-2011

[eluser]Unknown[/eluser]
Hi,

im experiencing some problems with controller/function adressing from a view

lets say, we have www.project.com/html/ as base_url

then we have a default controller which loads view from which through form we submit some data back to that default controllers function

form_open('default/function');

we should get link like www.project.com/html/default/function
bet
we constantly get www.project.com/html/www.project.com/html/default/function

what is wrong ?

Thank you!


cotroller adressing problems - El Forum - 05-14-2011

[eluser]toopay[/eluser]
What version of CI you talked above?


cotroller adressing problems - El Forum - 05-16-2011

[eluser]danmontgomery[/eluser]
base_url needs to have http:// in front of it. This is the same behavior as trying to create an HTML anchor without http://, it's seen as a relative path.