Call to undefined function base_url()
Closed this issue · 2 comments
bytecodedhawal commented
Call to undefined function base_url()
why this error occur ??????????????????/
SamWatsonOrSomething commented
Hi @bytecodedhawal, I'd guess that the URL helper isn't being loaded - you need the following line in your controller:
$this->load->helper('url');
Hopefully that should solve the problem!
anburocky3 commented
Call to undefined function base_url()
why this error occur ??????????????????/
Yes, please make sure you loaded the URL helper in your blocks. Please check @SamWatsonOrSomething post for more info.