youshido/settings
最新稳定版本:1.0.0
Composer 安装命令:
composer require youshido/settings
包简介
Bundle for easy integrations default site settings
关键字:
README 文档
README
Bundle used to set default parameters for everything
##Installation:
Import in your config.yml:
twig: #... globals: defaults: @ysettings
Import to admin structure.yml file:
This config use only in pair with YoushidoAdminBundle
imports: #... - { resource: ../../vendor/youshido/settings/Resources/config/admin/structure.settings.yml }
##Use it:
Use in controller:
$this->get('ysettings')->getParameter($key, $defaultValue);
Use in twig:
<title>{{ defaults.parameter(key) }}</title>
统计信息
- 总下载量: 176
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-30