public function addMessage($key, $message)
    {
        // Create Array for this key
        if (!isset($this->storage[$this->storageKey][$key])) {
            $this->storage[$this->storageKey][$key] = [];
        }

        // Push onto the array
        $this->storage[$this->storageKey][$key][] = $message;
    }
public function addMessage($key, $message)
    {
        // Create Array for this key
        if (!isset($this->storage[$this->storageKey][$key])) {
            $this->storage[$this->storageKey][$key] = [];
        }

        // Push onto the array
        $this->storage[$this->storageKey][$key][] = $message;
    }
public function addMessage ( $ key , $ message ) { // Create Array for this key if ( ! isset ( $ this -> storage [ $ this -> storageKey ] [ $ key ] ) ) { $ this -> storage [ $ this -> storageKey ] [ $ key ] = [ ] ; } // Push onto the array $ this -> storage [ $ this -> storageKey ] [ $ key ] [ ] = $ message ; }
Add flash message for the next request

@param string $key The key to store the message under
@param mixed  $message Message to show on next request
Add flash message for the next request