01-19-2011, 11:30 AM
|
#4 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
I believe in KISS (Keep It Simple, Stupid!)
PHP Code:
$test = 'Something'; ob_start(); include 'content/main.tl'; echo ob_get_clean();
This method would require your template file to have and echo also:
PHP Code:
<?php echo $test; ?>
You could also faff around and make some kind of smarty type thingy, personally I think its a waste of time and resources, but hey hum.
PHP Code:
$test = 'something'; echo str_replace('$test', $test, file_get_contents('content/main.tl'));
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
Last edited by sketchMedia : 01-19-2011 at 11:30 AM.
Reason: speeelinnnk
|
|
|
|