HTML :

<a href=”http://urltujuan.html”><img src=”/images/image.gif” style=”border: 0px”></a>

CodeIgniter:

Load html helper untuk menggunakan fungsi img()
<?php $this->load->helper(‘html’);?>

Gunakan fungsi img()
<?php echo anchor(“http://urltujuan.html”, img(array(‘src’=>’../images/image.gif’,’style’=>’border:0px’))); ?>

Facebook Comments

Leave a comment

Your email address will not be published. Required fields are marked *