Inheritance: extends ManaPHP\Component, implements ManaPHP\Mvc\Router\GroupInterface
Exemplo n.º 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']);
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct(true);
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct(true);
     $this->addGet('/time/current', [TimeController::class, 'current']);
 }