As a follow-up to this morning's message and as discussed with Derick on IRC, here's a patch that implements this functionality, created against trunk.
Or is there a specific reason why so far, passing the template object is only possible for functions, not for blocks? Or is that just an oversight? Cheers, Felix Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Felix Weis Gesendet: Mittwoch, 1. August 2007 00:11 An: [email protected] Betreff: [Components] ezcTemplate: using the TemplateObject in a custom block? Hello! Im wondering if there is a possibility to address the ezcTemplate Object in an ezcTemplateCustomBlock like in an ezcTemplateCustomFunction. e.g. For an ezcTemplateCustomFunction I set the definition: $def = new ezcTemplateCustomFunctionDefinition(); $def->class = "myclass"; $def->method = "myfunction"; // with this i will receive the TemplateObject as 1st Argument to myfunction() $def->sendTemplateObject = TRUE; But I need something like "$def->sendTemplateObject" for an ezcTemplateCustomBlock too. Greetings - Felix Weis
custom_blocks_tpl_obj.patch
Description: Binary data
-- Components mailing list [email protected] http://lists.ez.no/mailman/listinfo/components
