Update YdBase.php