Is there anyway to prevent PHPTAL from automatically echoing the result of
${php: XXXX}? I have integrated PHPTAL with Zend Framework and Dojo but
have an issue when attempting to use dojo().onLoadCaptureStart().

// inline-content.tpl.html
<tal:block>
${helper: dojo().onLoadCaptureStart()}
        function _initLoader() {
                dojo.parser.parse(dojo.body());
                dojo.fadeOut({ 
                        node: "loader",
                        duration: 420,
                        onEnd: function() {
                                dojo.byId('loader').style.display = "hidden";
                                dojo.byId('layoutContent').style.display = 
"inherit";
                        }
                }).play(25);
        }
${helper: dojo().onLoadCaptureEnd()}
${structure helper:
dojo().requireModule('dojo.parser').setDjConfigOption('parseOnLoad',
false).setCdnBase(Zend_Dojo::CDN_BASE_AOL).setCdnVersion('1.4.0').addStyleSheetModule('dijit.themes.tundra')}
${structure helper: inlineScript()}
</tal:block>

This code works perfectly fine but the method
$this->dojo()->onLoadCaptureEnd() returns true which outputs a "1" to my
page. Is there anyway to disable this behavior? Oh, while I'm thinking
about it, is there a way to do multi-line ${} tags so I don't have to have
such a long line? Something like:

${structure helper: 
  dojo().requireModule('dojo.parser')
        .requireModule('dijit.Form')}

Regards,

Charles K Spraggs

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

Reply via email to