Question and answer is powered by AnsPress.io
In codeigniter I got this error message. Call to undefined function base_url(). How can I solve it?
Use URL helper in the controller parent construct
Use this code:
<?php $this->load->helper('url'); ?>
For example:
<?php public function __construct(){ parent::__construct(); $this->load->helper(array('url','form')); } ?>