Trying to implement Smarty View