library multitaxonomy-pagerfanta-twig-templates
Multitaxonomy (Twig templates for pagerfanta objects)
php-taxonomy/multitaxonomy-pagerfanta-twig-templates
Multitaxonomy (Twig templates for pagerfanta objects)
- Friday, March 16, 2018
- by Nardberjean
- Repository
- 1 Watchers
- 0 Stars
- 72 Installations
- HTML
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 9 % Grown
Multitaxonomy (Twig templates for pagerfanta objects), (*1)
- DBAL-util is not used directly in templates!
These templates are used like a library.
$c->loadFromExtension('twig', [
'paths' => [
'%kernel.project_dir%/vendor/php-taxonomy/multitaxonomy-pagerfanta-twig-templates' => 'MultiTaxonomyDbalUtilBundle',
// templates is the new directory name in Symfony 4
// '%kernel.project_dir%/vendor/php-taxonomy/multitaxonomy-dbal-util-bundle/Resources/views' => 'MultiTaxonomyDbalUtilBundle',
],
]);
- https://symfony.com/doc/current/templating/namespaced_paths.html
- https://symfony.com/doc/3.3/templating/namespaced_paths.html
- https://symfony.com/blog/new-in-symfony-3-3-a-simpler-way-to-get-the-project-root-directory
- http://fabien.potencier.org/symfony4-directory-structure.html
Check syntax
With twigcs
- https://phppackages.org/p/allocine/twigcs
- Like in https://phppackages.org/p/symfony/maker-bundle
With symfony ~framework-bundle
$ bin/console lint:twig vendor/php-taxonomy/multitaxonomy-dbal-util-pagerfanta-twig-templates/
- https://symfony.com/doc/current/templating/syntax.html