承接 genemu/form-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

genemu/form-bundle

最新稳定版本:v2.3.0

Composer 安装命令:

composer require genemu/form-bundle

包简介

Extra form types for your Symfony2 projects

README 文档

README

⚠️ This project is not maintained anymore. If you're interested in maintaining it please get in touch with @genemu ⚠️

FormBundle

Build Status

Installation

Installation is quick and easy, 3 steps process

  1. Install GenemuFormBundle
  2. Enable the bundle
  3. Initialize assets

Step 1: Install GenemuFormBundle

Run the following command :

$ composer require genemu/form-bundle "^4.0"

Step 2: Enable the bundle

Finally, enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Genemu\Bundle\FormBundle\GenemuFormBundle(),
    );
}

Step 3: Initialize assets

$ php app/console assets:install web/

Form types

Select2 (view demo):

View configuration

Captcha GD

View configuration

ReCaptcha (Google library):

View configuration

JQueryUi (download):

Plain

A Form type that just renders the field as a p tag. This is useful for forms where certain field need to be shown but not editable.

The type name is genemu_plain.

Tips

Prototype usage within form collections

Template

You use GenemuFormBundle and you seen that it does not work! Maybe you have forgotten form_javascript or form_stylesheet.

The principle is to separate the javascript, stylesheet and html. This allows better integration of web pages.

View a template example form view

Note

There are maybe some bugs in those implementations, this package is just an idea of form types which can be very useful for your Symfony2 projects.

统计信息

  • 总下载量: 2.07M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 595
  • 点击次数: 1
  • 依赖项目数: 23
  • 推荐数: 1

GitHub 信息

  • Stars: 585
  • Watchers: 34
  • Forks: 263
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2011-11-26