Beispiel #1
0
 public function model($index)
 {
     $path = Init::loader('getPath') . DS . 'models' . DS . $index . '.model.php';
     if (!file_exists($path)) {
         throw new Exception('Model ' . $index . ' not exists');
     }
     require_once $path;
     return new $index();
 }
Beispiel #2
0
 private function is_controller($index)
 {
     return Init::loader('is_controller', $this->module . '/' . $index);
 }