Update and rename getDetails to getDetails.php