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(); }
private function is_controller($index) { return Init::loader('is_controller', $this->module . '/' . $index); }