Пример #1
0
 public function __construct($details)
 {
     //Example model is called after it's class
     $exampleModel = new ExampleModel();
     $exampleData = $exampleModel->getUsers();
     $this->exampleView = new ExampleView($exampleData);
 }
Пример #2
0
 private function create() {
     $this->load->model("ExampleModel.php");
     $model = new ExampleModel();
     $this->view->loadView("home",$model->exampleQuery());
 }