Update app/classes/basecontroller.php