/var/www/myprog.com.ua/telegram/libs
NameSizeModeActions
vendor/-0755rm
class.bootstrap.php41800644editdlrm
class.controller.php11090644editdlrm
class.database.php20670644editdlrm
class.mail.php44470644editdlrm
class.model.php2690644editdlrm
class.view.php3230644editdlrm
Edit: /var/www/myprog.com.ua/telegram/libs/class.controller.php (1109B)
view = new view(); } public function loadModel($name,$c=false){ $path = "models/class." . $name . "_model.php"; if (file_exists($path)) { require_once $path; $modelName = $name . '_model'; if(!$c){ $this->model = new $modelName(); //$this->view->perm = $this->model->getPerm($this->client_id); //$this->view->user_exchanges = $this->model->getUserExchanges(); }else{ $this->_collection[$name]=new $modelName(); } }else{ throw new Exception ("Error: Not found file $path"); } } public function getCollection ($name){ if(isset($this->_collection[$name])){ return $this->_collection[$name]; }else{ throw new Exception ("Error: Not found models $name"); } } } ?>