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 1 commit
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
Next Next commit
Added usage of layout view helper.
  • Loading branch information
kachar committed Sep 4, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit c3237b570a6b1997ae5f070c8976b015725ff393
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -83,6 +83,10 @@ function.

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

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

# Examples
@@ -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.