View Single Post
Old 01-19-2011, 12:30 PM   #4 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

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'$testfile_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 12:30 PM. Reason: speeelinnnk
sketchMedia is offline  
Reply With Quote