This ViewHelper provides access to the AdminCoreAPI:: functions.
This ViewHelper converts an regular Object to a so called Being with all Annotations, properties etc
This ViewHelper renders the currently active Widgets.
This ViewHelper renders a form field with error handling, label infotext, etc
Example:
<f:form method="post" action="form" fieldNamePrefix="form">
<a:being className="AdminDemo\Domain\Model\Address" as="being">
<a:form.field being="{ being.street}" />
<a:form.field being="{ being.housenumber}" />
<a:form.field being="{ being.city}" />
</a:being>
</f:form>
This ViewHelper renders a form for a being. This ViewHelper doesn’t render the form tag itself!
Example:
<f:form method="post" action="form" fieldNamePrefix="form">
<a:being className="AdminDemo\Domain\Model\Address" as="being">
<a:form.fields being="{ being}" />
</a:being>
</f:form>
This ViewHelper extends the regular LayoutViewHelper with the ability to specifiy an package to search for the layout
Example:
<a:layout name="Bootstrap" package="Admin"/>
This ViewHelper can be used to filter objects
Example:
<a:query.filter objects="{ objects}">
<f:for each="{ filteredObjects}" as="object">
...
</f:for>
<a:render partial="Filters/Right" fallbacks="Partials"/>
</a:query.paginate>
This is a simple pagination ViewHelper to limit and paginate objects
Example:
<a:query.paginate objects="{ objects}">
<f:for each="{ paginatedObjects}" as="object">
...
</f:for>
<div class="pagination pull-left">
<a:render partial="Limits" fallbacks="Partials"/>
</div>
<div class="pagination pull-right">
<a:render partial="Pagination" fallbacks="Partials"/>
</div>
</a:query.paginate>
This ViewHelper can be used to filter Objects by searching
Example:
<a:query.search objects="{ objects}">
<input type="text" class="" name="search" value="{search}" />
<button type="submit" class="btn">Search</button>
<f:for each="{ matchingObjects}" as="object">
...
</f:for>
</a:query.paginate>
This ViewHelper can be used to sort objects
Example:
<a:query.sort objects="{ objects}">
<f:link.action addQueryString="true" arguments="{sort: 'title', direction: sorting.oppositeDirection">
Sort by title
</f:link.action>
<f:for each="{ sortedObjects}" as="object">
...
</f:for>
</a:query.paginate>
This ViewHelper extends the regular RenderViewHelper with these features:
Examples(Partial):
<a:render partial="Pagination" fallbacks="Partials"/>
Examples(Section):
<a:render section='container' optional="true">
Content to be rendered when this section isn't overidden
</a:render>
This ViewHelper gives you access to global Settings from the view
This ViewHelper gives you access to the current user