Smarty setup