array.rst 302 B

1234567891011121314
  1. The Array Extension
  2. ===================
  3. The Array extensions provides the following filters:
  4. * ``shuffle``
  5. Installation
  6. ------------
  7. First, :ref:`install the Extensions library<extensions-install>`. Next, add
  8. the extension to Twig::
  9. $twig->addExtension(new Twig_Extensions_Extension_Array());