|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
leanweb Smarty Rookie
Joined: 27 Oct 2004 Posts: 24 Location: Newark, DE
|
Posted: Fri Oct 29, 2004 9:38 pm Post subject: caching images and files |
|
|
this is probably a rather common scenario, but mu search in this forum didnt come up with anything so i apologize if this is covered elsewhere.
my htdoc directory is
(where site is the name of site)
smarty and site smarty templates are on the same level as www, i.e.:
Code: | /home/site/smarty/*
/home/site/templates/* |
images (lets narrow this question to just images) are in the images subdirectory of the templates directory:
Code: | /home/site/templates/images/* |
which means that they can be simply referred to as
Code: | <img src="images/image.gif"/> |
simple and nice, right?
now, of course after templates have been processed by smarty, images will no longer be pointing at actual location of images.
ideally what i'd like to happen is move all images to smarty cache and adjust src attributes to point to their new cached location. is this possible?
thank you!
leanweb |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|