/var/www/myprog.com.ua/admin/libs
NameSizeModeActions
class.ajax.php7940644editdlrm
class.bootstrap.php132650644editdlrm
class.command.php5680644editdlrm
class.controller.php11020644editdlrm
class.cron.php9320644editdlrm
class.database.php20670644editdlrm
class.form.php29100644editdlrm
class.hash.php2100644editdlrm
class.mail.php44470644editdlrm
class.model.php50160644editdlrm
class.num_to_string.php40160644editdlrm
class.payment.php13800644editdlrm
class.session.php11780644editdlrm
class.validate.php25840644editdlrm
class.view.php11700644editdlrm
Edit: /var/www/myprog.com.ua/admin/libs/class.controller.php (1102B)
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"); } } } ?>