flexy global functions

From: Date: Sat, 24 Apr 2004 15:40:44 +0000
Subject: flexy global functions
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12108@lists.php.net to get a copy of this message
Hi Alan/all just testing out your new global functions (0.8.1), i've used the syntax indicated in the changelog: {GLOBALS.date(mydate,#d/m/y#)} and put it in a conditional {if:GLOBALS.is_array(v)} ... do something {end:} however this does not seem to work. the 'globalfunctions' = true is set. an a related note, it is possible to create custom functions for flexy? i know this was implemented for the old regex parser, don't think it works the current one. currently we're using the output object to add methods which can be called by flexy templates, however the issue is that say we have 50 html transform methods, we call all of them every page execution even if the current page uses only one of them. the advantage of having them in flexy (i believe) is that if the pages are compiled, the addition html methods won't get included/called, making the process considerably more streamlined. cheers demian

« previous php.pear.general (#12108) next »