brunnofoggia/codeigniter-codeblaze 问题修复 & 功能扩展

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

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

brunnofoggia/codeigniter-codeblaze

Composer 安装命令:

composer require brunnofoggia/codeigniter-codeblaze

包简介

Toolkit to build web applications faster using purely CodeIgniter. It makes able to develop projects much faster than you could if you were writing code using native features by providing a rich set of functionalities for commonly needed tasks.

README 文档

README

Minimum PHP Version License

Toolkit to build web applications faster using purely CodeIgniter. It makes able to develop projects much faster than you could if you were writing code using native features by providing a rich set of functionalities for commonly needed tasks.

Version notice

This works for CodeIgniter3.x

What this plugin provides?

Features for Controller

  • Methods for rendering views and partial views
  • Rest methods: get, create, update, delete
  • CRUD methods: index, view, form, save
  • Properties available for customization: layout, errorMsgs[delete, save]

Features for Model

  • Persist methods - save, update, create, delete, deleteAll, transact
  • Retrieve methods - get, find, exists
  • Persist related data methods - saveBelongsTo, saveHasMany, saveHasAndBelongsToMany
  • Retrieve related data methods - getRelated, getBelongsTo, getHasMany, getHasAndBelongsToMany
  • Properties available for customization: table, primaryKey, foreignKeys[], fieldsFormat[], recursive

Installation

You should install this with composer. Read the VCS repo docs. A initial composer.json would looks like:

{
  "repositories": [
      {
          "type": "vcs",
          "url": "https://bitbucket.org/brunnofoggia/CodeBlaze.git"
      },
      {
          "type": "vcs",
          "url": "https://bitbucket.org/brunnofoggia/h-basis.git"
      }
  ],
  "require": {
      "codeigniter/framework": "3.*",
      "codeigniter/CodeBlaze": "1.*"
  }
}

Usage

Its just necessary to import it into classes that would use it.

Controller example:

class Sample extends CI_Controller {
    use \codeigniter\CodeBlaze\Controller;
}

Model example:

class Sample_model extends CI_Model {
    use \codeigniter\CodeBlaze\Model;
    protected $table = 'sample';
}

Documentation

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固