Exemple #1
0
 /**
  * Sets the request, route, database, view and response variables.
  */
 public function __construct()
 {
     $this->route = Router::currentRoute();
     // Set database connection
     $this->db = ConnectionManager::connection();
 }