App Controller Smarty