void callback_column( string $column , mixed $callback )

This callback runs on each row. It escapes the auto column value and runs the callback. For this callback the return value is required and must be a string. The parameters that callback takes are : 1 - the primary key value of the row and 2 - the row as an object. The row as an object we can use it if we want quickly to take a value for another field.


public function webpages()
  $c = new grocery_CRUD();
  $output = $c->render();
public function _callback_webpage_url($value, $row)
  return "<a href='".site_url('admin/sub_webpages/'.$row->id)."'>$value</a>";
Latest download
grocery CRUD Newsletter
Join our newsletter to receive our last updates and news.
* indicates required