There was an error while loading. Please reload this page.
VeloFrame uses a simple but powerful routing system to map URLs to your page controllers.
index.php
pages/
Add a # @route /your-path annotation at the top of your controller file:
# @route /your-path
// pages/AboutHandler.php # @route /about class AboutHandler extends DefaultPageController { // ... }
You can define multiple routes per controller by adding more # @route lines.
# @route
RoutingHandler
$rh = new RoutingHandler(); $rh->register('/custom', new CustomHandler()); $server->setRoutingHandler($rh);
Currently, VeloFrame supports static routes. For dynamic parameters, extend the routing logic in your controllers.
See Architecture for the full request flow.