original_string: protected function _outputMessageSafe($template)
      {
          $helpers = ['Form', 'Html'];
          $this->controller->helpers = $helpers;
          $builder = $this->controller->viewBuilder();
          $builder->setHelpers($helpers, false)
              ->setLayoutPath('')
              ->setTemplatePath('Error');
          $view = $this->controller->createView('View');
  
          $this->controller->response = $this->controller->response
              ->withType('html')
              ->withStringBody($view->render($template, 'error'));
  
          return $this->controller->response;
      }
code: protected function _outputMessageSafe($template)
      {
          $helpers = ['Form', 'Html'];
          $this->controller->helpers = $helpers;
          $builder = $this->controller->viewBuilder();
          $builder->setHelpers($helpers, false)
              ->setLayoutPath('')
              ->setTemplatePath('Error');
          $view = $this->controller->createView('View');
  
          $this->controller->response = $this->controller->response
              ->withType('html')
              ->withStringBody($view->render($template, 'error'));
  
          return $this->controller->response;
      }
code_tokens: protected function _outputMessageSafe ( $ template ) { $ helpers = [ 'Form' , 'Html' ] ; $ this -> controller -> helpers = $ helpers ; $ builder = $ this -> controller -> viewBuilder ( ) ; $ builder -> setHelpers ( $ helpers , false ) -> setLayoutPath ( '' ) -> setTemplatePath ( 'Error' ) ; $ view = $ this -> controller -> createView ( 'View' ) ; $ this -> controller -> response = $ this -> controller -> response -> withType ( 'html' ) -> withStringBody ( $ view -> render ( $ template , 'error' ) ) ; return $ this -> controller -> response ; }
docstring: A safer way to render error messages, replaces all helpers, with basics
  and doesn't call component methods.
  
  @param string $template The template to render.
  @return \Cake\Http\Response A response object that can be sent.
docstring_tokens: A safer way to render error messages replaces all helpers with basics and doesn t call component methods .