Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added usage of layout view helper. #100

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ function.

{# Combining view helpers #}
{% set url = ( url('my/custom/route') ) %}

{# Usage of layout helper to dynamically load templates #}
{# defined in view_manager.template_map in the config. #}
{% extends layout().getTemplate() %}
```

# Examples
Expand All @@ -98,4 +102,4 @@ This let's ZfcTwig register its own renderer with view helpers that require it a
view helpers that do not require one.

As a caveat, you *must* register view helpers that require a renderer with ZfcTwig. An example can be seen in
`config/module.config.php` where the HelperConfig for the default navigation helpers is registered with ZfcTwig.
`config/module.config.php` where the HelperConfig for the default navigation helpers is registered with ZfcTwig.