adding href using base url in codeigniter code example Example: codeigniter base_url $this->load->helper('url');