[PHPTAL] Truncated macros names in stack trace

Kornel Lesinski kornel at aardvarkmedia.co.uk
Mon Jan 7 12:56:00 CET 2008


On Sat, 05 Jan 2008 10:56:54 -0000, Michal Ludvig <michal at logix.cz> wrote:

> Can I somehow get the full list without truncated parameters?

You can catch the exception and then call getTrace() to get array that  
contains *all* the information from the stack.

try
{
   $phptal->execute();
}
catch(Exception $e)
{
   print_r($e->getTrace());
}

However internally PHPTAL turns macros into functoins, and PHP by default  
displays full function name, so I guess your macro name is  
"s4j_pageBody_form_standard".

-- 
regards, Kornel



More information about the PHPTAL mailing list