template:twigstarter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
template:twigstarter [2021-07-14 16:43] – [Getting started] andi | template:twigstarter [2023-01-10 18:49] (current) – version upped andi | ||
---|---|---|---|
Line 5: | Line 5: | ||
author | author | ||
email : andi@splitbrain.org | email : andi@splitbrain.org | ||
- | lastupdate_dt : 2020-07-07 | + | lastupdate_dt : 2022-09-30 |
compatible | compatible | ||
depends | depends | ||
Line 40: | Line 40: | ||
==== TwigStarter Child ==== | ==== TwigStarter Child ==== | ||
- | If you want to depend on the original twigstarter template, copy over all files except for | + | If you want to depend on the original twigstarter template, copy over the following |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | |
Next create your own '' | Next create your own '' | ||
Line 76: | Line 75: | ||
* ''< | * ''< | ||
* contains the title, meta infos and favicon setup | * contains the title, meta infos and favicon setup | ||
- | * ''< | + | * '' |
* contains (nearly) everything | * contains (nearly) everything | ||
* has the '' | * has the '' | ||
Line 122: | Line 121: | ||
Note: Twig escapes by default, when you call functions that return HTML you need to pass them through the '' | Note: Twig escapes by default, when you call functions that return HTML you need to pass them through the '' | ||
+ | |||
+ | ==== Custom Controller ==== | ||
Usually you want some additional PHP code in your template. The easiest way to do so is to create class '' | Usually you want some additional PHP code in your template. The easiest way to do so is to create class '' | ||
+ | |||
==== Caching and Debugging ==== | ==== Caching and Debugging ==== |
template/twigstarter.1626273834.txt.gz · Last modified: 2021-07-14 16:43 by andi