__construct() public méthode

Group constructor.
public __construct ( boolean $useDefaultRoutes = true )
$useDefaultRoutes boolean
Exemple #1
0
 public function __construct()
 {
     parent::__construct(true);
     $this->add('/about', 'Index::about');
     $this->addGet('/about1', 'Index::about');
     $this->addGet('/about2', [IndexController::class, 'about']);
     $this->addGet('/about3', ['controller' => IndexController::class, 'action' => 'about']);
 }
Exemple #2
0
 public function __construct()
 {
     parent::__construct(true);
 }
Exemple #3
0
 public function __construct()
 {
     parent::__construct(true);
     $this->addGet('/time/current', [TimeController::class, 'current']);
 }