Re: HTML_Quickform headings in Smarty templates using {foreach}

From: Date: Thu, 26 Oct 2006 09:36:53 +0000
Subject: Re: HTML_Quickform headings in Smarty templates using {foreach}
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25647@lists.php.net to get a copy of this message
Hi, Matthew Vickery wrote:
I'm using HTML_Quickform with Smarty. If I create renderer abject and assign this to an array the resulting array looses the natural flow of the form. i.e. all the heading are at the top of the array, not above the form elements they refer to. This makes it impossible to use a {foreach} in my template to loop over the elements and print these in the correct order.
Array renderer (which is used by QF::toArray() method) and ArraySmarty renderer have quite different purposes. Please consult usage examples that come with the package for proper usage of both.

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