定制 girafa/crud 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

girafa/crud

Composer 安装命令:

composer require girafa/crud

包简介

ZF2 module used to facilitate crud operations on doctrine entities.

关键字:

README 文档

README

Total Downloads

Crud

Base module to extend to simplify crud development.

Installation

Composer

The suggested installation method is via composer:

php composer.phar require girafa/crud:dev-master

or

  1. Add this project in your composer.json:

    "require": {
        "girafa/crud": "dev-master"
    }
  2. Now tell composer to download Girafa\Crud by running the command:

    $ php composer.phar update

Git Submodule

Clone this project into your ./vendor/ directory

```sh
cd vendor
git clone https://github.com/girafacomunicacao/girafa-crud.git
```

Configuration

Global configuration

Copy ./vendor/girafa/crud/config/module.config.php to ./config/autoload/crud.global.php This configuration parameters applies to all modules that use Crud

Per module configuration

Add in module/YourModule/config/config.php a section like this

    'Crud' => array(
        __NAMESPACE__ => array(
            's_indexTitle'      => 'Index page default',
            's_indexTemplate'   => 'crud/index/index',
            's_newTitle'        => 'New page default',
            's_newTemplate'     => 'crud/index/default-form',
            's_editTitle'       => 'Edit page default',
            's_editTemplate'    => 'crud/index/default-form',
            's_detailTitle'     => 'Detail page default',
            's_detailTemplate'  => 'crud/index/detail',
            's_processErrorTitle'       => 'Form errors page default',
            's_processErrorTemplate'    => 'crud/index/default-form',
            's_deleteRouteRedirect'     => 'crud',
            's_processRouteRedirect'     => 'crud',
        )
    )

This configuration parameters applies to all controller extending Crud defined in that namespace

Per controller configuration

Redefine in your controller parameters you want to edit after call Crud constructor like

class IndexController extends \Girafa\Crud\Controller\CrudIndexController {
    
    public function __construct($I_service, $I_form) {
        $entityName = 'Dog';
        parent::__construct($entityName, $I_service, $I_form);
        $this->s_indexTitle = 'Title specific for this controller';
    }
}

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固