The event occurs event occurs after data has been selected from the database but before its outputting to client.
$conn->event->attach("beforeRender",handlerFunc);
Parameters handlerFunc:
Availability:
Sample:
function color_rows($row){
if ($row->get_index()%2)
$row->set_row_color("red");
}
$conn->event->attach("beforeRender","color_rows");
Back to top