problems with using paths in my templates

From: Date: Mon, 15 Jul 2002 21:31:36 +0000
Subject: problems with using paths in my templates
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5323@lists.php.net to get a copy of this message
Hi all, I'm having a few problems with images in my template, because of the difference between relative and absolute paths. At the moment, I have several templates, each in another directory, fe: www/templates/default , www/templates/green , . But when I want to include images, I have to use the absolute path. So, this works: <img src="/templates/default/images/bla.jpg"> but this doesn't <img src="images/bla.jpg"> How can I fix this? I really like to use the second method, because in the future I will give my visitors the ability to make templates for themselves. Thank's a lot, Peter

« previous php.smarty.general (#5323) next »