public function getLayout($layoutName, $view) { if (!$this->response->layout instanceof $layoutName) { $this->response->layout = LayoutFactory::get($layoutName, $view); } return $this->response->layout; }