Gossamer Forum
Quote Reply
Using PHP in templates
Hi!

I am trying to use php alongside the <%%> tags in my templates, but to little success.
Here is a small example of a template file that demonstrates what I want to do:

Code:
<!DOCTYPE html>
<html lang="en">
<head>
<title><%site_title%></title>
</head>
<body>
<?php echo "hello"; ?>
</body>
</html>
When I try this, the the php is simply converted to html comments. How do I get the php to parse?

Thanks
Subject Author Views Date
Thread Using PHP in templates Coert 16114 Aug 4, 2014, 2:20 AM
Thread Re: [Coert] Using PHP in templates
eupos 15947 Aug 4, 2014, 2:49 AM
Thread Re: [eupos] Using PHP in templates
Coert 15922 Aug 4, 2014, 3:08 AM
Thread Re: [Coert] Using PHP in templates
eupos 15914 Aug 4, 2014, 3:19 AM
Thread Re: [eupos] Using PHP in templates
Coert 15926 Aug 4, 2014, 3:34 AM
Thread Re: [Coert] Using PHP in templates
eupos 15909 Aug 4, 2014, 4:00 AM
Thread Re: [eupos] Using PHP in templates
Coert 15898 Aug 4, 2014, 4:40 AM
Thread Re: [Coert] Using PHP in templates
eupos 15951 Aug 4, 2014, 4:56 AM
Thread Re: [eupos] Using PHP in templates
Coert 15925 Aug 4, 2014, 5:05 AM
Thread Re: [Coert] Using PHP in templates
eupos 15897 Aug 4, 2014, 5:11 AM
Thread Re: [eupos] Using PHP in templates
Coert 15857 Aug 4, 2014, 5:25 AM
Thread Re: [Coert] Using PHP in templates
eupos 15916 Aug 4, 2014, 5:31 AM
Thread Re: [eupos] Using PHP in templates
Coert 15914 Aug 4, 2014, 5:34 AM
Thread Re: [Coert] Using PHP in templates
eupos 15877 Aug 4, 2014, 5:39 AM
Thread Re: [eupos] Using PHP in templates
Coert 15858 Aug 5, 2014, 11:55 PM
Post Re: [Coert] Using PHP in templates
Andy 15829 Aug 6, 2014, 1:35 AM