code: private function findPath($directory)
      {
          $path = [];
          $path[] = $this->basePath;
          $path[] = $directory;
          $path[] = 'views';
  
          return implode(DIRECTORY_SEPARATOR, $path);
      }
docs: Find theme views path
  
  @param $directory
  @return string