public function setLayout($layout) { if (!($this->layout = mfe::loadFile('@engine.@layout.' . $layout, $this->layout_extension))) { throw new CException('Not found layout file: ' . $layout . $this->layout_extension . ' in directories: ' . PHP_EOL . implode('; ' . PHP_EOL, mfe::app()->loader->getRealPaths('@engine.@layout.', true))); } return $this; }