rofil/template-master
Composer 安装命令:
composer require rofil/template-master
包简介
The default template for rofil application
README 文档
README
#INSTRUCTION# ##Introduction## This bundle is used as default theme of my symfony project. This theme is based on bootstrap css framework. ##Installation## Add to composer.json
...
"rofil/template-master": "master-dev"
...
update composer.json by running
...
$ composer update
...
register the bundle in appkernel.php
...
new Rofil\Template\MasterBundle\RofilTemplateMasterBundle(),
...
##Configuration###
in app/config/config.yml
...
assetic:
...
bundles: [ "RofilTemplateMasterBundle" ]
...
twig:
...
form:
resources:
- 'RofilTemplateMaster:Form:fields.html.twig'
##Dump Asset##
app/console assets:install
##Assetic Dump
php app/console assetic:dump
##Usage## in template you can extends our template by using
{% extends("RofilTemplateMasterBundle:one-column.html.twig") %}
{% block "content" %}
...
{% endblock %}
for one column template or for two column template by using
{% extends("RofilTemplateMasterBundle:one-column.html.twig") %}
{% block "sidebar" %}
...
{% endblock %}
{% block "content" %}
...
{% endblock %}
the available block that availabel to override are header, navigation, title, layout and footer.
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-04