Grocery crud - How to change fields values on view/read -
Grocery crud - How to change fields values on view/read -
can help me please ?
if ($crud->columns['name'] == '') { $crud->columns['name'] = "anonymous"; } how can right way ?
i think need give more info case, example, field type.
from grocery crud documentation:
http://www.grocerycrud.com/documentation/options_functions/field_type#dropdown-field
if have dropdown field named 'status', can set values this:
$crud->field_type('status','dropdown', array('1' => 'active', '2' => 'private','3' => 'spam' , '4' => 'deleted')); you have values set view/read , edit.
view grocery-crud
Comments
Post a Comment