Callback function in PDOCrud
Message :
Users
Showing 1 to 3 of 3 entries
$pdocrud = new PDOCrud(); //Add callback function "beforeloginCallback" on before_select event $pdocrud->addCallback("before_select", "beforeloginCallback"); echo $pdocrud->dbTable("users")->render(); // Available events are //This 'beforeloginCallback' function must be added on script/pdocrud.php file // e.g. before data submission encrypt user password function beforeloginCallback($data, $this) { $data["data"]["user_pass"]= md5($data["data"]["user_pass"]); return $data; }
Showing 1 to 3 of 3 entries