Package

ViewHelpers

ViewHelper Documentation

render

ViewHelper that renders a section or a specified partial

== Examples ==

<f:render partial="SomePartial" arguments="{foo: someVariable}" /> the content of the partial "SomePartial". The content of the variable {someVariable} will be available in the partial as {foo}

<f:section name="someSection">This is a section. {foo}</f:section> <f:render section="someSection" arguments="{foo: someVariable}" /> the content of the section "someSection". The content of the variable {someVariable} will be available in the partial as {foo}

<f:section name="mySection">

</f:section> <f:render section="mySection" arguments="{myMenu: menu}" />
  • menu1

     <ul>
       <li>menu1a</li>
       <li>menu1b</li>
     </ul>
    

  • [...] (depending on the value of {menu})

    <f:render partial="somePartial" arguments="{_all}" /> the content of the partial "somePartial". Using the reserved keyword "_all", all available variables will be passed along to the partial

Arguments

section string, required

partial string, required

arguments string, required

optional string, required

ViewHelper Resources

Schema Resources