sbyaute/adminlte-make
Composer 安装命令:
composer require sbyaute/adminlte-make
包简介
AdminLTE Make helps you create controllers and templates boostraped for AdminLTE theme bundle
关键字:
README 文档
README
This repository contains AdminLTEMaker bundle which helps you create controller skeletons and templates based on AdminLTE bundle and DataTables bundle.
Fork from Pretorien / AdminLTEMaker
Add :
- Personal templates
- Delete method with token and modal
- Modal option to create CRUD with modal
Minimum requirements
- Symfony 5.0
- PHP 7.2
- Twig 2.0
- AdminLTE bundle
- DataTables bundle
Installation with Composer
Installation using composer :
composer require sbyaute/adminlte-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\AdminLTEMakerBundle\AdminLTEMakerBundle::class => ['all' => true], ];
Usage
This bundle provides several commands under the make: namespace. List them all executing this command:
php bin/console list make:adminlte make:adminlte:controller Creates a new controller class make:adminlte:crud Creates AdminLTE CRUD for Doctrine entity class make:adminlte:crudmodal Creates AdminLTE 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 admin_lte_make
admin_lte_make:
base_layout: '@AdminLTE/layout/default-layout.html.twig'
skeleton_dir: .../src/DependencyInjection/../Resources/skeleton/
datatable:
cdn_css: 'https://cdn.datatables.net/v/dt/jq-3.2.1/dt-1.10.16/datatables.min.css'
cdn_js: 'https://cdn.datatables.net/v/dt/jq-3.2.1/dt-1.10.16/datatables.min.js'
License and contributors
Published under the MIT, read the LICENSE file for more information.
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-11