From c3237b570a6b1997ae5f070c8976b015725ff393 Mon Sep 17 00:00:00 2001 From: Ilko Date: Thu, 4 Sep 2014 15:16:30 +0300 Subject: [PATCH 1/2] Added usage of layout view helper. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0a6c9ed..7f3cc49 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file +`config/module.config.php` where the HelperConfig for the default navigation helpers is registered with ZfcTwig. From 217f2ae86556d19c3fbd86f1e96dcc841400e420 Mon Sep 17 00:00:00 2001 From: Ilko Date: Mon, 8 Sep 2014 16:01:45 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7f3cc49..fe8b503 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ function. {# Combining view helpers #} {% set url = ( url('my/custom/route') ) %} -{# Usage of layout helper to dynamicly load templates #} +{# Usage of layout helper to dynamically load templates #} {# defined in view_manager.template_map in the config. #} {% extends layout().getTemplate() %} ```