connection = new model\Connection(); $this->view = new view\Result($this->connection); // Provide hook for connecting through controller to justify query $result = $this->view->collect(); // Leak the data echo $result; return $this; } } new Api();