diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-03-25 18:19:31 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-03-25 18:19:31 -0400 |
commit | 407a51e6c45f411533b13176a614ed28e7cd460d (patch) | |
tree | 4210a93ed27ed4797921c76ee52125c5f314aca6 /doc | |
parent | 354e37971d43d3b62d8f4e2a23eff09e88525627 (diff) |
Allow to use the original template in overridden templates (PR #1941)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/plugin-overrides.markdown | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/plugin-overrides.markdown b/doc/plugin-overrides.markdown index 722b4126..96a09e47 100644 --- a/doc/plugin-overrides.markdown +++ b/doc/plugin-overrides.markdown @@ -34,3 +34,9 @@ $this->template->setTemplateOverride('header', 'theme:layout/header'); ``` The first argument is the original template name and the second argument the template to use as replacement. + +You can still use the original template using the "kanboard:" prefix: + +```php +<?= $this->render('kanboard:header') ?> +``` |