pbk83/csimpletable
, (*1)
Install
SimpleTable can be installed together with Anax - MVC through Composer. Add the following line to composer.json (under require ):, (*2)
"pbk83/csimpletable": "dev-master"
SimpleTable can then be added as a service in Anax - MVC:, (*3)
$di->set('SimpleTable', function() use ($di) {
$table = new pbk83\SimpleTable\CSimpleTable();
return $table;
});
SimpleTable can also be used without Anax - MVC., (*4)
Use
Use the method addHeadings($head) to create a header.
Example:, (*5)
addHeadings([’Name’, ’Age’]);
Use the method addRow($row) to add rows to the table.
Example:, (*6)
addRow([’Joe’, ’43’]);
addRow([’Jane’, ’45’]);
Use the method createTable() to get the generated html - code., (*7)
Updated, (*8)