예제 #1
0
파일: tools.php 프로젝트: JUkhan/jwt_php
 private function isIgnoredWidget($arr, $val)
 {
     if (JwtUtil::endsWith($val, '__LAYOUT__')) {
         $val = str_replace("__LAYOUT__", "", $val);
     }
     foreach ($arr as $value) {
         if ($value == $val) {
             return true;
         }
     }
     return false;
 }
예제 #2
0
 public function getTemplate($name)
 {
     if (JwtUtil::endsWith($name, '__LAYOUT__')) {
         $name = str_replace("__LAYOUT__", "", $name);
         return JwtUtil::getContent($this->rootPath . "Scripts/Layouts/{$name}/{$name}.html");
     }
     return JwtUtil::getContent($this->rootPath . "Scripts/Components/{$name}/{$name}.html");
 }