tags:

views:

332

answers:

4

So I made myself a little html/css template. And now I'm trying to actually use it with some PHP code however, it only renders text. The images and css arent there. Everything is in the templates/Default directory. Do i have to do something funky with my paths in the template?

A: 

you shoudl put your images in html/img

Then all image paths should start /img/

wheresrhys
A: 

Wow, that's a weird question... :)

Just check what URLs the browser requests when looking for the stylesheets/images. I think you will have to adjust paths that you use in your smarty template.

Rimas Kudelis
+2  A: 

Use firebug and see why the images don't show up. You need to activate the "NET" tab and then you see all the requests being made when your browser requests the page. My guess is that the paths to CSS and images are incorrect.

Till
Or look at the HTML that is being output.
Alister Bulman
Firebug can lie, I recommend actually using http live headers or Fiddler for this kind of thing.
apphacker
Hehe, Firebug lies? Got any examples?
Till
A: 

Yes probably, sorry it is always a pain with linking images and css - seems simple, but isn't always!!!

Is there a space being create for where the images should be? If so, right click and see the path the image is calling in and make sure it is uploaded there.

Otherwise, use a tool like firebug (firefox plugin) to find out where the css and images are being called in, or just right click and 'view source of the page' then just make sure everything is being called in from the right place! If needs be, put direct urls for the images ie. www.mysite.com/templates/templatename/images/myimage.gif - just to make sure they are where you think they are!

good luck

Cazmaraline