Calling Img From Base URL in CodeIgniter
<p>So normally I would <code>&lt;?php echo base_url();?&gt;</code>but im not sure how to do it in this code.</p>

<pre><code>&lt;?php
    $path = 'home';
    $img = '&lt;img src="../img/servare.png" alt=""&gt;';
    echo anchor($path, $img);
</code></pre>

<p>I have tried...</p>

<pre><code>&lt;?php
    $path = 'home';
    $img = '&lt;img src="' &lt;?php echo base_url();?&gt;'../img/servare.png" alt=""&gt;';
    echo anchor($path, $img);
</code></pre>

<p>But the img is not showing, any ideas ?</p>