Re: Sigma template

From: Date: Thu, 08 Jul 2004 21:41:51 +0000
Subject: Re: Sigma template
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13567@lists.php.net to get a copy of this message
Hi, Xavier Spriet wrote:
This behaviour is by design. I do not want to change it and do not want to add Smarty-like syntax for assigning the variables: dummy parameter is way easier to add than the convoluted construct you propose.
--------------------------- There are a few problems with this: 1) The documentation is no longer accurate (see the example with the toggle() function for bgcolor callback) http://pear.php.net/manual/en/package.html.html-template-sigma.intro-syntax.php
What exactly is not accurate? The example works as shown in the docs.
2) Some calls return random values from a database. The templating engine then only displays the first return value.
Add a dummy parameter to these calls.
It sounds like there should really be a boolean option to setCallBackVariable called RememberFirstValue and set by default to TRUE if this is by design.
Ouch.

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