Image issues

Permalink
Hi has anyone had a similar problem. When I add images to the code in my templates php nothing appears, however if I place it in the css it shows up and also if I add to the page via the backend this also works however I need to add to the main template php any ideas please desperate my head hurts

clairec
 
Mnkras replied on at Permalink Reply
Mnkras
in the php are you just doing src=/images/pic.jpg

or are you going through the index.php? if it is just the images you need to add this before it

src=<?=$this->getThemePath()?>/images/pic.jpg

this will get the current theme's directory