$rows
$rows : array
Data for table rows
HTML Table Generating Class
Lets you create tables manually or from database result objects, or arrays.
setHeading( $args = array()) : \CodeIgniter\View\Table
Set the table heading
Can be passed as an array or discreet params
$args |
setFooting( $args = array()) : \CodeIgniter\View\Table
Set the table footing
Can be passed as an array or discreet params
$args |
makeColumns(array $array = array(), integer $columnLimit) : array
Set columns. Takes a one-dimensional array as input and creates a multi-dimensional array with a depth equal to the number of columns. This allows a single array with many elements to be displayed in a table that has a fixed column count.
array | $array | |
integer | $columnLimit |
setEmpty(mixed $value) : \CodeIgniter\View\Table
Set "empty" cells
Can be passed as an array or discreet params
mixed | $value |
addRow( $args = array()) : \CodeIgniter\View\Table
Add a table row
Can be passed as an array or discreet params
$args |
setCaption(string $caption) : \CodeIgniter\View\Table
Add a table caption
string | $caption |
clear() : \CodeIgniter\View\Table
Clears the table arrays. Useful if multiple tables are being generated
_setFromDBResult(\CodeIgniter\Database\BaseResult $object) : void
Set table data from a database result object
\CodeIgniter\Database\BaseResult | $object | Database result object |