/** * @param $file * @return bool|string */ public function viewPath($file) { return \TAO::filePath(array(\TAO::localDir("views/navigation"), \TAO::taoDir("views/navigation")), $file); }
/** * @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; }
/** * @param $file * @return mixed */ protected function viewPath($file) { return \TAO::filePath($this->fileDirs('views'), "{$file}.phtml"); }
/** * @param $file * @return mixed */ public function viewPath($file, $extra = false) { $dirs = $this->dirs('views'); $path = \TAO::filePath($dirs, $file, $extra); return $path; }