protected function _outputMessageSafe($template) {
		$this->controller->layoutPath = null;
		$this->controller->subDir = null;
		$this->controller->viewPath = 'Errors';
		$this->controller->layout = 'CakeTheme.error';
		$this->controller->helpers = array('Form', 'Html', 'Session');

		if (!empty($template)) {
			$template = 'CakeTheme.' . $template;
		}
		$view = new View($this->controller);
		$this->controller->response->body($view->render($template, 'CakeTheme.error'));
		$this->controller->response->type('html');
		$this->controller->response->send();
	}
protected function _outputMessageSafe($template) {
		$this->controller->layoutPath = null;
		$this->controller->subDir = null;
		$this->controller->viewPath = 'Errors';
		$this->controller->layout = 'CakeTheme.error';
		$this->controller->helpers = array('Form', 'Html', 'Session');

		if (!empty($template)) {
			$template = 'CakeTheme.' . $template;
		}
		$view = new View($this->controller);
		$this->controller->response->body($view->render($template, 'CakeTheme.error'));
		$this->controller->response->type('html');
		$this->controller->response->send();
	}
protected function _outputMessageSafe ( $ template ) { $ this -> controller -> layoutPath = null ; $ this -> controller -> subDir = null ; $ this -> controller -> viewPath = 'Errors' ; $ this -> controller -> layout = 'CakeTheme.error' ; $ this -> controller -> helpers = array ( 'Form' , 'Html' , 'Session' ) ; if ( ! empty ( $ template ) ) { $ template = 'CakeTheme.' . $ template ; } $ view = new View ( $ this -> controller ) ; $ this -> controller -> response -> body ( $ view -> render ( $ template , 'CakeTheme.error' ) ) ; $ this -> controller -> response -> type ( 'html' ) ; $ this -> controller -> response -> send ( ) ; }
A safer way to render error messages, replaces all helpers, with basics
and doesn't call component methods. Set layout to `CakeTheme.error`.

@param string $template The template to render
@return void
A safer way to render error messages replaces all helpers with basics and doesn t call component methods . Set layout to CakeTheme . error .