Updating base.php