PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_Template_Flexy » Bug #3685

var named "elements" is not inherited in included template

Details

Submitted2005-03-03 10:40 UTC
Fromjeroenl at zwolnet dot com
StatusNo Feedback
PackageHTML_Template_Flexy
PHP Version4.3.8
OSWin
Roadmaps(Not assigned)

Comments

[2005-03-03 10:40 UTC] jeroenl at zwolnet dot com

Description:
------------
It seems that a var when named "elements" is not inherited in an included template.

This makes using Flexy with QuickForm group elements incompatible.

Workaround:

Clone the "elements" var to something like "groupElements" before using <flexy:include src="...."/> and then use that.

E.g. by using a clone() method in your Renderer Object:

function clone($var, $name) {
$this->$name = $var;
}

Then do in the template something like:
{clone(elements,#groupElements#)}
<flexy:include src="...."/>

And use {groupElements} in the included template.

(Should also stay working after fix :)