Text with images - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Text with images (/showthread.php?tid=51621) |
Text with images - El Forum - 05-10-2012 [eluser]Unknown[/eluser] Anybody Help me i want to pass text + images in anchor tag. Text with images - El Forum - 05-11-2012 [eluser]gRoberts[/eluser] simply use an anchor tag... Code: <a href="<?= site_url('controller/action/param'); ?>">Some text <img src="<?= base_url(); ?>assets/images/an-image.jpg" alt="An image" title="This is an image" /></a> Text with images - El Forum - 05-11-2012 [eluser]weboap[/eluser] http://ellislab.com/forums/viewthread/97297/ Text with images - El Forum - 05-11-2012 [eluser]InsiteFX[/eluser] SaveAs: ./application/helpers/MY_url_helper.php Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |