![]() |
url library/anchor function for content on database content - 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: url library/anchor function for content on database content (/showthread.php?tid=45547) |
url library/anchor function for content on database content - El Forum - 09-26-2011 [eluser]dwlamb[/eluser] I have need for an anchor tag embedded within content drawn from the database for the application I am working on. Yet, for some reason CI is not executing the anchor function. These are relevant sections within my controller for this app Code: class Main extends CI_Controller { In my View, url helper is also loaded and the value from the $data array echoed with appropriate syntax: Code: <?php echo $recipe_instruc?> The section of text returned from the database is as follows: Code: Serve over ice cream or <?php echo anchor('main/index/7', 'profiteroles');?> The above quoted text is a snippet of the overall block of text returned from the database. All the rest of the text echos properly to the view. The section of text that should echo as a coded anchor tag does not. I can understand the anchor function not being executed at the Controller level but it should execute at the View level, no? |