Fixing $PHP variable assignment.
Adding require_once to get Smarty class file.