Path Resolving Issues

Permalink
Hello all, this is kind of an urgent issue as the site in reference it currently live and I'm not the original developer of this site.

I'm looking at the background source code of the site and where "<?=$view->getThemePath() ?>/location/of/file.php" should be resolving to the location of all the source files of the site, it simply states "<?=$view->getThemePath() ?>.location/of/file.php". Not sure why this started happening. It was just noticed today. Previously the site was fine. Any help would be greatly appreciated.

Again this is kind of an urgent matter. Thank you in advance for any help.

1 Attachment

 
hutman replied on at Permalink Best Answer Reply
hutman
Is it possible that short tags got turned off on the server this site is on? They are off in many environments by default.

You could test this by changing one or two to

<?php echo $view->getThemePath() ?>


And seeing if the correct information shows up.
ReubenGarcia replied on at Permalink Reply
Hello Hutman,

That's exactly what it was. I changed all of the PHP tags to long form and it worked just fine. Not to sure how it got turned off all of a sudden though. Thank you for your help.