PHP Classes

File: src/app/http/routes.php

Recommend this page to a friend!
  Classes of walid laggoune   Hydrogen framework   src/app/http/routes.php   Download  
File: src/app/http/routes.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Hydrogen framework
Handle request by controller with configured route
Author: By
Last change: Version 4.2
Date: 6 years ago
Size: 267 bytes
 

Contents

Class file image Download
<?php
$this
->add("/home:GET", function($params, $container) {
   
$this->middleware("BEFORE", "BasicMiddleware", $container);
   
$this->controller("HomeController", "home", $params, $container);
   
$this->middleware("AFTER", "BasicMiddleware", $container);
});
$this->run();