smarty example failed