Fatal error: Call to undefined function base_url() in CodeIgniter
You need to load the url helper within controller constructor or function.
$this->load->helper('url');
OR
Add below code under application/config/autoload.php that looks like
Add below code under application/config/autoload.php that looks like
$autoload['helper'] = array('url');
Comments
Post a Comment