定制 lubos/table 二次开发

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

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

lubos/table

最新稳定版本:0.1.0

Composer 安装命令:

composer require lubos/table

包简介

CakePHP Table plugin helps you to create table via CakePHP helper

README 文档

README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

A CakePHP 3.x plugin for creating Html tables

Installation

composer require lubos/table

Load plugin in bootstrap.php file

Plugin::load('Lubos/Table');

Usage

In your controller

public $helpers = [
    'Lubos/Table.Table'
];
```

In your view
```php
$cells = [
    ['cell 00', 'cell 01', 'cell02'],
    ['cell 10', 'cell 11', 'cell12'],
    ['cell 20', 'cell 21', 'cell22']
];
$this->Table->create();
$this->Table
    ->startRow(['group' => 'head', 'class' => 'header'])
    ->header('header 1')
    ->header('header 2')
    ->header('header 3')
    ->endRow();
foreach ($cells as $row) {
    $this->Table->startRow();
    foreach ($row as $cell) {
        $this->Table->cell($cell);
    }
    $this->Table->endRow();
}
echo $this->Table->display();
```

## Bugs & Features

For bugs and feature requests, please use the issues section of this repository.

If you want to help, pull requests are welcome.  
Please follow few rules:  

- Fork & clone
- Code bugfix or feature
- Follow [CakePHP coding standards](https://github.com/cakephp/cakephp-codesniffer)
- Make tests and use phpunit to pass them

统计信息

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

GitHub 信息

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

其他信息

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