Re: [SMARTY] Path to images in templates
| From: | Monte Ohrt | Date: | Thu, 13 Mar 2003 19:21:39 +0000 |
| Subject: | Re: [SMARTY] Path to images in templates | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8627@lists.php.net to get a copy of this message | ||
You could keep your image path in a config file.
<img src="{#imagePath#}/foo.jpg">
On Thu, 2003-03-13 at 12:55, Ale Sarco wrote:
> I have the following file structure:
>
> myapp
> myapp/templates
> myapp/templates/images
>
> I edit my templates with Dreamweaver which are in the templates dir , and
> insert images from de images dir. I can see images in DW, but when the
> templates are parsed by the php files in the myapp dir, the images are no
> longer visible because the generated HTML expects to find them in an non
> existent /myapp/images dir.
> If I do the other way, and put the img tag pointing to templates/images in
> DW, I see the images in the browser but not in DW.
> Is there any way I can see the images in both cases?
>
> TIA
--
Monte Ohrt <monte@ispi.net>