Nodefony extend Twig Reference default


nodefony extend twig reference

nodefony built-in filters

Filter trans

<div class="start"> {{ "welcome"|trans() }} {{user.displayName }} </div>
							

							

							

nodefony built-in functions

Function path or url

<li><a href="{{path("finder")}}">DEMO FINDER</a></li>
<li><a href="{{url("finder")}}">DEMO FINDER</a></li>
							

<li class="nav-item" ><a href="{{path('documentation-section',{section:section, version:version, bundle:bundle })}}">{{section | trans() | capitalize()}}</a></li>
<li class="nav-item" ><a href="{{url('documentation-section',{section:section, version:version, bundle:bundle })}}">{{section | trans() | capitalize()}}</a></li>
							

<li class="nav-item" class="active"><a href="{{path('documentation-section',{section:section, version:version, bundle:bundle,queryString:qs })}}">{{sec | trans() | capitalize()}}</a></li>
<li class="nav-item" class="active"><a href="{{url('documentation-section',{section:section, version:version, bundle:bundle,queryString:qs })}}">{{sec | trans() | capitalize()}}</a></li>
							
Function getFlashBag

<div class="hide" id="error">{{ getFlashBag('error') }}</div>
<div class="hide" id="adduser">{{ getFlashBag('adduser') }}</div>
							

							

							
Function render

							

							

							
Function controller

							

							

							
Function trans

							

							

							
Function getLocale

							

							

							
Function trans_default_domain

							

							

							
Function getTransDefaultDomain