Beispiel #1
0
 protected function getTemplateFile()
 {
     $file = VIEWDIR . $this->template . '.php';
     if (is_file($file)) {
         return $file;
     }
     $file = Dir::concat(PIMPLEBASE, 'view') . $this->template . '.php';
     if (is_file($file)) {
         return $file;
     }
     return null;
 }
Beispiel #2
0
 public static function getCacheFile($filename)
 {
     $dirname = dirname(substr($filename, strlen(BASEDIR)));
     return Dir::concat(CACHEDIR, $dirname) . basename($filename);
 }
Beispiel #3
0
 public static function compileAll()
 {
     $jsDir = Dir::concat(Pimple::instance()->getSiteDir(), 'www/js/');
 }