<?=$this->getThemePath()?>

Permalink
I've just moved hosts and, actually the support for my new ones are really responsive and willing to help.

I've activated a theme which i knew to work perfectly on other concrete installs but seems to have problems on the new one.

It seems that where i have used

<?=$this->getThemePath()?>


for where i have referenced images based in the theme directory. But it does not work and instead puts out a url for theme image like.

http://mysite.com/%3C?=$this-%3EgetThemePath()?%3E/elements/images/file.jpg


I don't know much about php but surely the script here is not executing. Anyone any ideas what's missing off my server so i can point my hosting company in the right direction.

thanks

olay
 
powermick replied on at Permalink Reply
powermick
<?php  echo $this->getThemePath(); ?>
olay replied on at Permalink Reply
olay
– thanky ou.

Any idea as to what setup would cause that?

Incidentally the mod_rewrite isn't working either and i've double checked the .htaccess file... If you have any ideas on that or think the two things could be related i'd love to hear.

Thanks again
powermick replied on at Permalink Reply
powermick
the cause is:
the php extension : open short tag
isn't active !!
and is good because you need to know:
the "<?" tag is no good because xml file start with this tag too, so is prefered to start php code with "<?php"

and very important reason write here:

http://www.concrete5.org/help/building_with_concrete5/developers/co...