Allow to use the original template in overridden templates (PR #1941)

This commit is contained in:
Frederic Guillot
2016-03-25 18:19:31 -04:00
parent 354e37971d
commit 407a51e6c4
4 changed files with 38 additions and 24 deletions

View File

@@ -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') ?>
```