On 03-01-2009 at 14:41:26 Mikael Andersson mail.mi...@gmail.com wrote:
It works fine now, just in case someone else runs into similar trouble
this is what I've done.
1. set the encoding for the PHPTAL object
2. Added ?xml version=1.0 encoding=ISO-8859-1?
3. Added meta http-equiv=Content-Type
Try this:
]] $ more test.php
?php
include_once('PHPTAL.php');
$template = new PHPTAL('test.xml');
$template-set('userInfo', 'Default userInfo info');
try {
print $template-execute();
} catch(Exception $e){
print Error:: {$e-getMessage()}\n;
}
?
]] $ more test.xml
div id=userInfo
Hi
Your example works perfectly fine.
But I fail to see how it differs from mine, which I still can't get to work
properly.
Thanks,
micke
2009/1/3 Levi Stanley l...@eneservices.com
Try this:
]] $ more test.php
?php
include_once('PHPTAL.php');
$template = new PHPTAL('test.xml');