protected function view($viewOrModel = null, $model = null, $layout = null) {
        return new ViewResult($viewOrModel, $model, $layout);
    }
protected function view($viewOrModel = null, $model = null, $layout = null) {
        return new ViewResult($viewOrModel, $model, $layout);
    }
protected function view ( $ viewOrModel = null , $ model = null , $ layout = null ) { return new ViewResult ( $ viewOrModel , $ model , $ layout ) ; }
Creates a ViewResult object that renders a view to the response.

@param string|object|null $viewOrModel View name or model.
@param object|null $model Model.
@param string|null $layout Layout file name or path.

@return ViewResult
Creates a ViewResult object that renders a view to the response .