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