12-21-2007, 07:18 PM
|
#4 (permalink)
|
|
The Acquainted
Join Date: Nov 2007
Location: Netherlands
Posts: 113
Thanks: 11
|
Quote:
Originally Posted by Tanax
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
???
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);
?>
|
|
|
|