On 04.04.2009, at 22:25, Bobby wrote:

I want to eventually make an error list macro, my errors are sent to the
template under a constant key name,
for example:

interface AppConstants {
 const ERROR_KEY = 'error_key';

$template = new PHPTAL('example.html');
$template->set(AppConstants::ERROR_KEY, array('Yay, an error!', 'W00t'));

I want to be able to retrieve it using that same constant, this is where I start
to run into problems...

I've partially fixed it in SVN. Parsing of ${} in php: should be better now. I'll have a look at semicolon issue soon.

regards, Kornel

PHPTAL mailing list

Reply via email to