phpe/ctable 问题修复 & 功能扩展

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

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

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');

Scrutinizer Code Quality Code Coverage Build Status

统计信息

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

GitHub 信息

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

其他信息

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