sbyaute/twigbootstrap-maker
Composer 安装命令:
composer require sbyaute/twigbootstrap-maker
包简介
TwigBootstrap Maker helps you create controllers and templates boostraped for twigbootstrap theme bundle
README 文档
README
This repository contains TwigBootstrapMaker bundle which helps you create controller skeletons and templates based on AdminLTE bundle, TwigBootstrap bundle and DataTables bundle.
Minimum requirements
- Symfony 4.4
- PHP 7.1
- Twig 2.0
- AdminLTE bundle
- TwigBootstrap bundle
Installation with Composer
Installation using composer :
composer require sbyaute/TwigBootstrap-Maker
Then, enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:
<?php return [ // ... Sbyaute\TwigBootstrapMakerBundle\TwigBootstrapMakerBundle::class => ['all' => true], ];
Usage
This bundle provides several commands under the make: namespace. List them all executing this command:
php bin/console list make:twigbootstrap
make:twigbootstrap:controller Creates a new controller class
make:twigbootstrap:crud Creates TwigBootstrap CRUD for Doctrine entity class
make:twigbootstrap:crudmodal Creates TwigBootstrap CRUD (modal mode)for Doctrine entity class
Configuration
This bundle doesn't require any configuration. But, you can configure the base layout and several parameters :
php bin/console config:dump twig_bootstrap_maker
twig_bootstrap_maker:
base_layout: '@TwigBootstrap/layout.html.twig'
skeleton_dir: .../src/DependencyInjection/../Resources/skeleton/
Translation
The translation messages are located in messages and entity class domain. So yo can update it by using :
php bin/console translation:update fr --force --output-format=yaml --domain=messages php bin/console translation:update fr --force --output-format=yaml --domain=[entity class]
License and contributors
Published under the MIT, read the LICENSE file for more information.
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-01