/** Clear messages and errors from the session data */ public static function clear_messages() { self::$errors = self::$messages = array(); unset(jigoshop_session::instance()->messages); unset(jigoshop_session::instance()->errors); }
/** Clear messages and errors from the session data */ function clear_messages() { self::$errors = self::$messages = array(); unset($_SESSION['messages']); unset($_SESSION['errors']); }