This is really getting on my nerves
I've created a template system for a simple script that I coded, I put variables that should be echo'd within the templates, like this:
Code: Select all
<title>{$page_title}</title>
</head>
<body>
{$message}
</body>
Code: Select all
include "link_to_file.tpl";
Code: Select all
echo "This is a message: {$message}";
I don't want to add <?php echo and ?> around each variable that I want to display, I've seen a lot of templates where the programmers just wrote their variables in that format "{$variable}"
I've tried file() file_get_contents() functions but nothing works
Can someone please help me??