protected function createErrorViewModel($message)
    {
        /* @var $response \Zend\Http\Response */
        $response = $this->getResponse();
        $response->setStatusCode(500);

        $model = new ViewModel(array('message' => $message));
        $model->setTemplate('organizations/error/invite');

        return $model;
    }
protected function createErrorViewModel($message)
    {
        /* @var $response \Zend\Http\Response */
        $response = $this->getResponse();
        $response->setStatusCode(500);

        $model = new ViewModel(array('message' => $message));
        $model->setTemplate('organizations/error/invite');

        return $model;
    }
protected function createErrorViewModel ( $ message ) { /* @var $response \Zend\Http\Response */ $ response = $ this -> getResponse ( ) ; $ response -> setStatusCode ( 500 ) ; $ model = new ViewModel ( array ( 'message' => $ message ) ) ; $ model -> setTemplate ( 'organizations/error/invite' ) ; return $ model ; }
Creates a view model for the error page view script.

Sets the response status code to 500 (indicating an internal error).

@param string $message

@return ViewModel
Creates a view model for the error page view script .