Use the code given below to perform transactions in Fat-Free Framework:
$db->begin();
$db->e ...