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

Allow arrays to be assigned and retrieved in templates

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-dev
    • Fix Version/s: 3.1.0-a1
    • Component/s: Template Engine
    • Labels:
      None

      Description

      This enables arrays to be retrieved directly within templates. For example assigning $user->data to a variable A_USER_DATA the template designer can access any variable within the original $user->data array in the form of

      {A_USER_DATA:<element>}

      . The values can be used within conditional statements and blocks.

      PR #912

        Issue Links

          Activity

          Hide
          psoTFX psoTFX added a comment -

          Switched access method to

          {<VARNAME>-><element>}

          , e.g.

          {A_USER_DATA->username}
          Show
          psoTFX psoTFX added a comment - Switched access method to {<VARNAME>-><element>} , e.g. {A_USER_DATA->username}
          Hide
          naderman Nils Adermann added a comment -
          Show
          naderman Nils Adermann added a comment - Fixed by http://tracker.phpbb.com/browse/PHPBB3-11598

            People

            • Assignee:
              EXreaction EXreaction [X] (Inactive)
              Reporter:
              psoTFX psoTFX
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development