Welcome Guest, Not a member yet? Register   Sign In
undefined function base_url()
#1

[eluser]mistress_shiira[/eluser]
hi guys!kindly point out what im doing wrong here.cause i cant seem to understand why i keep getting this error.

in my controller i have a function add that calls the view below:
Code:
$this->load->helper('url');
$this->load->view('mainpage');
and in my view:
Code:
<a href='&lt;? echo base_url();?&gt;index.php/mainpage'>Main Page</a>
but then undefined function error is displayed.
same thing when i use anchor.


Messages In This Thread
undefined function base_url() - by El Forum - 11-14-2007, 12:44 AM
undefined function base_url() - by El Forum - 11-14-2007, 05:40 AM
undefined function base_url() - by El Forum - 11-14-2007, 08:15 AM
undefined function base_url() - by El Forum - 11-14-2007, 04:18 PM
undefined function base_url() - by El Forum - 10-02-2008, 02:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB