Image as anchor in the encoder
3 answers
This will work:
$path = 'admin/conf/edit/' .$list['id'];
$img = '<img src="../img/edit.jpg" alt="">';?>
echo anchor($path, $img);
And with the html helper:
$img = array(
'src' => '../img/edit.jpg',
'alt' => ''
);
$path = 'admin/conf/edit/' .$list['id'];
echo anchor($path, img($img));
0
source to share