protected function _setLayout(Controller &$controller) {
		$isModal = $controller->request->is('modal');
		$isPopup = $controller->request->is('popup');
		$isSSE = $controller->request->is('sse');
		$isPrint = $controller->request->is('print');
		if ($isModal || $isPopup || $isSSE) {
			$controller->layout = 'CakeTheme.default';
		} elseif ($isPrint) {
			$controller->viewPath = mb_ereg_replace(DS . 'prt', '', $controller->viewPath);
			$controller->response->type('html');
		}
	}
protected function _setLayout(Controller &$controller) {
		$isModal = $controller->request->is('modal');
		$isPopup = $controller->request->is('popup');
		$isSSE = $controller->request->is('sse');
		$isPrint = $controller->request->is('print');
		if ($isModal || $isPopup || $isSSE) {
			$controller->layout = 'CakeTheme.default';
		} elseif ($isPrint) {
			$controller->viewPath = mb_ereg_replace(DS . 'prt', '', $controller->viewPath);
			$controller->response->type('html');
		}
	}
protected function _setLayout ( Controller & $ controller ) { $ isModal = $ controller -> request -> is ( 'modal' ) ; $ isPopup = $ controller -> request -> is ( 'popup' ) ; $ isSSE = $ controller -> request -> is ( 'sse' ) ; $ isPrint = $ controller -> request -> is ( 'print' ) ; if ( $ isModal || $ isPopup || $ isSSE ) { $ controller -> layout = 'CakeTheme.default' ; } elseif ( $ isPrint ) { $ controller -> viewPath = mb_ereg_replace ( DS . 'prt' , '' , $ controller -> viewPath ) ; $ controller -> response -> type ( 'html' ) ; } }
Set layout for SSE, modal and popup response

@param Controller &$controller Instantiating controller
@return void
Set layout for SSE modal and popup response