benmacha/templatebundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

benmacha/templatebundle

Composer 安装命令:

composer require benmacha/templatebundle

包简介

Symfony Template Bundle

README 文档

README

Symfony bundle to generate template with a nice design in your Symfony application.

Support Palestine Latest Stable Version Total Downloads Latest Unstable Version License

Installation

The easiest way to install and configure the TemplateBundle with Symfony is by using Composer: Add the benmacha/templatebundle package to your require section in the composer.json file.

$ composer require benmacha/templatebundle ^1.0

Add the Bundle to your application's kernel:

<?php
public function registerBundles()
{
    $bundles = array(
        // ...
            new Benmacha\TemplateBundle\BenmachaTemplateBundle(),
        // ...
    );
    ...
}

Configure the Bundle in your config.yml:

benmacha_template:
    site_name: 'Ben Macha' #required
    logo_path: 'bundles/benmachatemplate/img/logo-2.png' #required
    logo_path_mobile: 'bundles/benmachatemplate/img/logo-2-mob.png' #required
    user:
        class: AppBundle\Entity\User
        picture: image

Usage

To generate a CRUD, run this command NB: The menu will be generated

$  php bin/console benmacha:generate:crud

Don't forget to extend the repository like this

<?php

namespace AppBundle\Repository;

use Benmacha\TemplateBundle\Repository\BaseRepository; //add this line

class UserRepository extends BaseRepository // make this extend
{
     // Your code   
}
        

统计信息

  • 总下载量: 147
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固