Images not being displayed
| From: | Alan Lord | Date: | Sun, 26 Oct 2003 22:26:36 +0000 |
| Subject: | Images not being displayed | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10438@lists.php.net to get a copy of this message | ||
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