function __construct() { $this->view = new View(); $this->helper = new Helper(); $this->dbh = new \PDO("mysql:host={$this->helper->config['db_credentials']['host']};\n dbname={$this->helper->config['db_credentials']['dbname']}", $this->helper->config['db_credentials']['user'], $this->helper->config['db_credentials']['pass']); $this->model = new Model($this->dbh); Session::start(); }