Re: Re: [SMARTY] hello again :)

From: Date: Thu, 28 Nov 2002 16:31:59 +0000
Subject: Re: Re: [SMARTY] hello again :)
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6596@lists.php.net to get a copy of this message
yes, we've established that - now tell me how to do it! ;) --- At 2002-11-28, 10:22:00, Monte Ohrt <monte@ispi.net> wrote: >Whether or not absolute paths are used, you don't want either to break >your plugin. That's the point. > >So this: >{img src="my.gif"} > >and this: >{img src="/my.gif"} > >will both find the gif under the document root. >Monte > >Rasmus Schultz wrote: > >>well, yes - I'm not sure what to do about that? >> >>I'm also not sure you should be doing that in the first place? I >>generally to avoid using absolute paths, unless it's absolutely >>necessary ... because if you ever decide you want to move your >>pages to another folder, and they're full of absolute paths, to >>pictures or whatever else, you're screwed... >> >>--- At 2002-11-25, 23:49:00, Monte Ohrt <monte@ispi.net> wrote: >> >> >> >>>If it works, then you must happen to have your script in the top level >>>of your document root. To make it work from anywhere, you should prepend >>>the document root directory to your image path to be sure it works right. >>> >>>What if you used "/gifs/my.gif" instead, I'll bet it fails? >>> >>>Monte >>> >>>Rasmus Schultz wrote: >>> >>> >>> >>>>>what are you putting in for the image path? >>>>> >>>>> >>>>> >>>>> >>>>exactly like the example shows, or for example: >>>> >>>>{img src="gifs/my.gif" border=1} >>>> >>>>if my gifs had been located in such a folder, that is. >>>> >>>>what can I say, it works? >>>> >>>>but show me how to do it "correctly" then? :) >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >> >> >> >> >> >> > > > >-- >Smarty General Mailing List (http://smarty.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php

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