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');
		}
	}