phpe/ctable
最新稳定版本:v1.0
Composer 安装命令:
composer require phpe/ctable
包简介
Class for HTML table
README 文档
README
A html table generator
About
A very light and simple class that genrate a html table from an array with values.
PHP 5 >= 5.3.0
Introduction
Just create an object $ctable = new \phpe\HTMLTable\CTable();
Then, if you want to change the table headers, write the following(if you dont want to, skip it):
$table = $ctable->setTableHeading('array with names', 'css class name');
To get the html table:
$table = $ctable->getTable('array with values', 'css class name');
Using anax-mvc
Make it apart of $Di like:
$di->setShared('ctable', function() { $ctable = new \phpe\HTMLTable\CTable(); return $ctable; });
Then can you, depenending where in the code you want to reach CTable, reach the class whit either $app or $di; $app->ctable->getTable($anArray, 'cssClass'); or $this->di->ctable->getTable($anArray, 'cssClass');
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-16