On 12 Jan 2010, at 16:02, <the...@spiffyjr.me> wrote:

Thanks for the advice. I'd prefer to go with method #1 because that is how I was previously rendering templates with Zend_View. The echo issue still remains, however. If I use ${dojo().onLoadCaptureEnd()} then I get random "1" outputs everywhere because onLoadCaptureEnd() returns true. This is rather unfortunate because dojo information is rendered all over the place
in Zend. For example,

This can be easily solved:

function noecho($anything)
{
return '';
}

${php:noecho(dojo.onLoadCaptureEnd())}

or more fancy:

function phptal_tales_noecho($expr)
{
        $code = phptal_tales('php:' . $expr);
        return " ''.(($code)&&0) "; // PHP doesn't have comma operator
}

${noecho:dojo.onLoadCaptureEnd())


--
regards, Kornel


_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to