[Tickets #4413] NEW: Allow template <loop> tag to render keyed arrays
bugs@bugs.horde.org
bugs at bugs.horde.org
Tue Sep 12 13:56:04 PDT 2006
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=4413
-----------------------------------------------------------------------
Ticket | 4413
Created By | tevans at tachometry.com
Summary | Allow template <loop> tag to render keyed arrays
Queue | Horde Framework Packages
Version | HEAD
Type | Bug
State | Unconfirmed
Priority | 1. Low
Owners |
+New Attachment | template_patch.txt
-----------------------------------------------------------------------
tevans at tachometry.com (2006-09-12 13:56) wrote:
The Template library currently supports nested arrays for the <loop> tag if
the given array uses numeric keys. However, it is also helpful to use
arrays that have non-numeric keys to render HTML (for example, a list of
database rows).
Thie attached patch file removes the constraint for numeric keys. Note
that most of the changed lines in Tempate.php have been flagged due to
whitespace changes only. A single "if" statement (line 12 in the patch
file) was removed.
I have included updates to the Template PHPUnit test suite to demonstrate
the changed behavior. The new and existing tests were run successfully
with the proposed changes.
Thank you for your consideration.
Tom Evans
Tachometry
More information about the bugs
mailing list