Exemple #1
0
 /**
  * @param $file
  * @return bool|string
  */
 public function viewPath($file)
 {
     return \TAO::filePath(array(\TAO::localDir("views/navigation"), \TAO::taoDir("views/navigation")), $file);
 }
Exemple #2
0
 /**
  * @param $page
  * @param $numPages
  * @return string
  */
 public function render($page, $numPages)
 {
     $path = \TAO::filePath($this->dirs('views'), 'page-navigator.phtml', $this->type);
     $style = \TAO::filePath($this->dirs('styles'), 'pager.css', $this->type);
     ob_start();
     include $path;
     $content = ob_get_clean();
     return $content;
 }
Exemple #3
0
 /**
  * @param $file
  * @return mixed
  */
 protected function viewPath($file)
 {
     return \TAO::filePath($this->fileDirs('views'), "{$file}.phtml");
 }
Exemple #4
0
 /**
  * @param $file
  * @return mixed
  */
 public function viewPath($file, $extra = false)
 {
     $dirs = $this->dirs('views');
     $path = \TAO::filePath($dirs, $file, $extra);
     return $path;
 }