php-taxonomy / multitaxonomy-pagerfanta-twig-templates
多分类(用于 pagerfanta 对象的 Twig 模板)
dev-master / 0.1.x-dev
2018-12-28 21:03 UTC
Requires
- symfony/twig-bundle: ^2.7 || ^3.0 || ^4.0
- white-october/pagerfanta-bundle: ^1.0
Requires (Dev)
- allocine/twigcs: ^2.0 || ^3.0
This package is auto-updated.
Last update: 2024-09-29 05:27:46 UTC
README
多分类(用于 pagerfanta 对象的 Twig 模板)
已完成:重命名为 php-taxonomy/multitaxonomy-pagerfanta-twig-templates
- DBAL-util 在模板中未直接使用!
这些模板像库一样使用。
$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.cn/doc/current/templating/namespaced_paths.html
- https://symfony.com.cn/blog/new-in-symfony-3-3-a-simpler-way-to-get-the-project-root-directory
- http://fabien.potencier.org/symfony4-directory-structure.html
检查语法
使用 twigcs
使用 symfony ~framework-bundle
$ bin/console lint:twig vendor/php-taxonomy/multitaxonomy-dbal-util-pagerfanta-twig-templates/