System:Model:createHtmlTable
From Aspen Documentation
Creates a basic table with the results
Since 1.0
Arguments
string createTable ([array $row_names = false], [array $ignore_fields = false])
- row_names
- Nicer names of each row. If false, we attempt to make nice names by removing underscores and using
ucwords - ignore_fields
- Field names in the result set to be skipped.
Examples
You may use this feature with either a single record from the database:
$this->APP->form->loadRecord('blog', 1); $this->APP->model->createTable();
Or with incoming values from a form:
$this->APP->form->loadTable('blog'); if($this->APP->form->isSubmitted()){ $this->APP->model->createTable(); }