src/RawPHP/RawApplication/Application.php
public function addFlash( $message, $type = 'error' )
    {
        if ( 'error' === $type )
        {
            $this->flash[ 'errors' ][ ] = $message;
        }
        else
        {
            $this->flash[ 'success' ][ ] = $message;
        }

        //$this[ 'session' ]->add( 'messages', $this->flash );
    }
public function addFlash( $message, $type = 'error' )
    {
        if ( 'error' === $type )
        {
            $this->flash[ 'errors' ][ ] = $message;
        }
        else
        {
            $this->flash[ 'success' ][ ] = $message;
        }

        //$this[ 'session' ]->add( 'messages', $this->flash );
    }
public function addFlash ( $ message , $ type = 'error' ) { if ( 'error' === $ type ) { $ this -> flash [ 'errors' ] [ ] = $ message ; } else { $ this -> flash [ 'success' ] [ ] = $ message ; } //$this[ 'session' ]->add( 'messages', $this->flash ); }
Adds a flash message to appear on the next page.

Error   => 'error' ( default )
Success => 'success'

@param string $message success or error message
@param string $type    the type of message
Adds a flash message to appear on the next page .