initialising smarty