Products example
function products_management() { $crud = new grocery_CRUD(); $crud->set_table('products'); $crud->set_subject('Product'); $crud->unset_columns('productDescription'); $crud->callback_column('buyPrice',array($this,'valueToEuro')); $output = $crud->render(); $this->_example_output($output); } function valueToEuro($value, $row) { return $value.' €'; }
Note: The below example is an iframe so it might appeared with a scroll bar. If you like you can view the example
on a new tab