Forums / Developer / Exponential Eclipse Plugin Development / Comment47929
Sylvain Bannier
Thursday 22 March 2007 3:52:54 am
Paul,
that's actually what I do in my script. The ouput contains the content of $tpl->errorLog and the content of $tpl->warningLog.
$tpl->validateTemplateFile( $templateUrl ); //[...] foreach($tpl->errorLog() as $error) { //[...] } foreach($tpl->warningLog() as $error) { //[...] }
I didn't say that the validator doesn't work. I only wish it could dig a little deeper in template structure. So I'm looking for some way to perform more accuarate syntax validation than eZTemplate::validateTemplateFile() .
The other problem is that the errorLog often fails to found the correct error line.
http://www.smile.fr