public function __construct() { $this->app = Application::getInstance(); $this->view = View::getInstance(); $this->config = $this->app->getConfig(); $this->input = InputData::getInstance(); $this->httpContext = $this->app->getHttpContext(); $this->db = new SimpleDB(); }