![]() |
Output image from controller to view - 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: Output image from controller to view (/showthread.php?tid=8151) |
Output image from controller to view - El Forum - 05-07-2008 [eluser]yusufdestina[/eluser] In my view I have this: Code: <img src="'.base_url().'serve/thumb/'.$gallery->gallery_id.'/'.$pic->pic_id.'" alt="" title="" /> Code: <?php Output image from controller to view - El Forum - 05-07-2008 [eluser]yusufdestina[/eluser] Very weird, if I place the code from inside thumb function to the contsructor and then reroute Code: $route['serve/:any'] = 'serve'; If anyone knows why please let me know |