Issues

ZF-2475: Zend_Controller_Action_Helper_FlashMessenger lacks a method to clear all current messages too

Description

Like clearMessages method, one to clear current messages too.


/**
 * Clear all messages from the current namespace
 *
 * @return bool True if messages were cleared, false if none existed
 */
public function clearCurrentMessages()
{
    if ($this->hasCurrentMessages()) {
        unset(self::$_session->{$this->_namespace});
        return true;
    }

    return false;
}

Comments

Scheduling for 1.5

Patch commited in r8248.

Please check that it does what you like.

-ralph