Home » HTML » HTML_Template_Flexy » Bug #3685
var named "elements" is not inherited in included template
Details
| Submitted | 2005-03-03 10:40 UTC |
|---|---|
| From | jeroenl at zwolnet dot com |
| Status | No Feedback |
| Package | HTML_Template_Flexy |
| PHP Version | 4.3.8 |
| OS | Win |
| 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 :)