I added an on_update event to my grid but i am always getting an internal server error. My code is below:
$e[“on_update”] = array(“update_client”, null, true);
$g->set_events($e);function update_client($data)
{
$myfile = fopen(‘storage/logs/text4.txt’, ‘w’);
$result = print_r($data, true);
fwrite($myfile, $result);
fclose($myfile);
}
1 Answers
For internal server error, you should review the php error log file. It will tell the exact details of the server error.
Share those details as well if you are unable to solve.
Your Answer