How do I access site url or base url from codeigniter controller?
<p>I want to access my site url or base url from my controller in codeigniter 3. I tried <code>$this-&gt;url-&gt;site_url()</code> and <code>$this-&gt;config-&gt;site_url()</code>. None worked. Is it even possible?</p>