View Single Post
Old 12-21-2007, 07:18 PM   #4 (permalink)
sjaq
The Acquainted
 
sjaq's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 113
Thanks: 11
sjaq is on a distinguished road
Default

Quote:
Originally Posted by Tanax View Post
Wow, thanks!! I will study the code more carefully :D

Also one thing, does this also work with variables?
Like if I do:

Code:
You are currently on page {page}
And that would be replaced with the value of
PHP Code:
$page 
???

THanks once again :)
No, it won't.

It gets all the data out of the array so if you would like to replace {page} with the contents of $page you'll have to do something like this:
PHP Code:
<?php 

    $values 
= array(
        
'page' => $page
    
);

    
$tpl->parse('test'$values);

?>
sjaq is offline  
Reply With Quote
The Following User Says Thank You to sjaq For This Useful Post:
Tanax (12-21-2007)