智能信息系统 / 标签包
标签包
dev-master / 2.0.x-dev
2018-02-01 19:36 UTC
Requires
- php: >=7.0
- symfony/symfony: ^3.2.0
This package is not auto-updated.
Last update: 2024-09-26 18:56:34 UTC
README
要求
- php 7
- symfony 3.2
安装
- 在
composer.json中声明包和仓库链接
{
// ...
"require": {
// ...
"SmartInformationSystems/tags-bundle": "dev-master"
},
"repositories": [
{
"type" : "vcs",
"url" : "https://github.com/SmartInformationSystems/TagsBundle.git"
}
]
}
- 在
app/AppKernel.php中包含此包
class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new SmartInformationSystems\FileBundle\SmartInformationSystemsTagsBundle(), // ... ); } }
- 包含必要的模板
twig: form_themes: - 'SmartInformationSystemsTagsBundle:form:fields.html.twig'
- 在
app/config/routing.yml中添加配置
smart_information_systems.tags: resource: "@SmartInformationSystemsTagsBundle/Resources/config/routing.yml" prefix: /tags