Re: [SMARTY] Images not being displayed

From: Date: Mon, 27 Oct 2003 09:53:45 +0000
Subject: Re: [SMARTY] Images not being displayed
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10439@lists.php.net to get a copy of this message
Hi there, I have a sneaky suspition (sp?) that you have put your images next to your templates rather than next to your php files. You need to keep external files in your web tree rather than your templates directory. Hope this helps, Chris Quoting Alan Lord <lord_alan@hotmail.com>: > Hi, > > Please help if you can. > > I have a small test site and in "raw HTML" the site works, and looks fine. > > If I then move most of the HTML into templates and generate the content > dynamically via PHP I can get the whole thing to work except that my images > are not displayed. > > The ref. to the img. file is the same as in my static html code. When view > source in Mozilla, I can see the correct refs to my images. I have tried > using absolute paths and relative paths. I also notice that the dynamic page > does not load the css style sheet either. Moz also reports that the header > for an image link was type "text/html". > > I am guessing that this is a header problem but haven't a clue where to go > next. > > I generate content and assign into my templates using $smarty->assign. And > this input works fine... My images and css sheets are "hard coded" into the > html of the template files and definately exist where their path points to. > > It must be a header problem surely... > > I am using Smarty 2.6.0RC2, PHP4.3.4RC1, Apache 2.0.47 > > Thanks in advance > > Al > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Chris Boot bootc@bootc.net http://www.bootc.net/

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