init smarty