Lines Matching refs:templates

16 To easily remove all deprecated feature usages from your templates, write and
25 print_r($deprecations->collectDir(__DIR__.'/templates'));
27 The ``collectDir()`` method compiles all templates found in a directory,
32 If your templates are not stored on the filesystem, use the ``collect()``
53 they won't be generated when templates are already cached.
113 Let's say that your templates are loaded from both ``.../templates/mysite``
114 and ``.../templates/default`` in this order. The ``page.twig`` template,
115 stored in ``.../templates/default`` reads as follows:
126 ``.../templates/mysite``. And if you want to extend the original template, you
131 {# page.twig in .../templates/mysite #}
132 {% extends "page.twig" %} {# from .../templates/default #}
135 ``.../templates/mysite``.
139 other directories: ``.../templates`` in our case. This has the effect of
147 {# page.twig in .../templates/mysite #}
148 {% extends "default/page.twig" %} {# from .../templates #}
159 recommended to use this feature as templates will be tied with your custom
376 visit *all* templates it compiles. If you need to keep some state information
398 If you are developing a CMS, templates are usually stored in a database. This
405 $dbh->exec('CREATE TABLE templates (name STRING, source STRING, last_modified INTEGER)');
412 …$dbh->prepare('INSERT INTO templates (name, source, last_modified) VALUES (?, ?, ?)')->execute(['b…
413 …$dbh->prepare('INSERT INTO templates (name, source, last_modified) VALUES (?, ?, ?)')->execute(['i…
415 We have created a simple ``templates`` table that hosts two templates:
470 $sth = $this->dbh->prepare('SELECT '.$column.' FROM templates WHERE name = :name');
488 contributed templates in a database, you might want to keep the original/base
489 templates on the filesystem. When templates can be loaded from different
494 the key to be able to mix and match templates coming from the database, the
508 Now that the ``base.twig`` templates is defined in an array loader, you can
541 include in your templates: