protected function layoutFile($name) { $layoutsPath = $this->application->layoutPath(); $name = strpos($name, '.phtml') === false ? $name . '.phtml' : $name; return $layoutsPath . $name; }