Thread: Image pathing
View Single Post
  #5 (permalink)  
Old 05-22-2007, 05:42 AM
SpotSec's Avatar
SpotSec SpotSec is offline
Senior Member
 
Join Date: Feb 2007
Location: United States
Posts: 121
Default

this is a slightly nicer rewrite rule
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1


I'm not exactly sure what your problem is, but I am
under the impression that you have trouble with the image path?

Wouldn't something like <?php echo $this->baseURL;?>/pub/foo/bar.jpg work for you?
Perhaps being lazy and just set everything relative to root /pub/foo/bar.jpg
__________________
Zym Framework - A Zend Framework extension library w/ demo app

SpotSec Blog:
http://spotsec.com/blog
Reply With Quote