protected function getViewPath() { if (is_null($this->viewPath) === false) { return $this->viewPath; } return $this->viewPath = __DIR__ . '/../../resources/views/' . ucfirst(class_basename(get_class($this))) . '/'; }