CodeIgniter Forums
displaying images using anchor_popup - 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: displaying images using anchor_popup (/showthread.php?tid=23790)



displaying images using anchor_popup - El Forum - 10-21-2009

[eluser]amipaxs[/eluser]
Hello,

I'm working on a system that uses index.php on the url. the problem is when i use

anchor_popup on this way,
Code:
echo "<td>" .anchor_popup($list['route_from_db'], $list['name'], array())."</td>";

I get embedded index.php on the URL on this way-> http://www.website.com/index.php/media/logos/logo.gif not being able to display the image on the popup..

Is there a way to fix this without using .htaccess on the root ?


displaying images using anchor_popup - El Forum - 10-22-2009

[eluser]Mackstar[/eluser]
Anchor pop up is not meant to be used for images, just html content, try housing your image in a html frame which you create with CI and it should work.

Cheers

Richard


displaying images using anchor_popup - El Forum - 10-22-2009

[eluser]Mackstar[/eluser]
Sorry just forgot that you can use the str_replace php tag to rid yourself of index.php, but I still don't see many people opening images this way...