Smarty Controller example