Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9165

Extend template loop to allow iteration step modification

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0-RC3
    • Component/s: Other
    • Labels:
      None
    • Environment:
      PHP Environment:
      Database:

      Description

      The loop syntax of the template engine could be extended to allow a user to change the internal loop step from 1 to an arbitrary value. Ideally it would make it possible to output a loop in reverse by specifying a step of -1.

        Activity

        Show
        nicofuma nicofuma added a comment - It is covered by Twig ( http://twig.sensiolabs.org/doc/tags/for.html http://twig.sensiolabs.org/doc/functions/range.html ).

          People

          • Assignee:
            nicofuma nicofuma
            Reporter:
            ToonArmy Chris Smith
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development