Reference search
Results for "routes"
Search results focus on framework reference pages. Open a result when you need the full explanation, or use the quick answer below when it matches what you are trying to build.
Quick answer
Create a route file
Use the route generator for larger feature areas, then require the generated file from public/routes.php.
php coriander make:route admin
php coriander make:route admin/users
Start Here
Routing Module Guide
...le most paths automatically. Custom route definitions start in public/routes.php. For small projects such as SPAs, marketing websites, brochure websites, and simple landing pages, ...
Framework Concepts
...orianderPHP application before you open the detailed reference pages. Routes Routes map URLs to code. Small apps can define routes directly in public/routes.php, but feature areas ...
CLI Guide
... CreateUsersTable make:route Create an app-owned route file under src/Routes. php coriander make:route admin php coriander make:route admin/users Use this when public/routes.php be...
Middleware Guide
...]); } return $handler->handle($request); } } Register it in public/routes.php or a file from src/Routes: use Middleware\AuthMiddleware; $router->group('admin', [new...
Project Guidance
Request Lifecycle
... client -> public/index.php -> framework bootstrap -> public/routes.php -> route file -> middleware -> controller -> module or repository -> view or respons...
Errors And Debugging
...ot Found Check: The route exists.The route file is required by public/routes.php.The method matches the request method.Dynamic route parameters match the pattern. Example: $blogRou...
Recommended App Architecture
...owned folders: src/ Controllers/ ApiControllers/ Middleware/ Modules/ Routes/ public/ public_views/ documentation/ database/ nodejs/ resources/ tests/ Framework updates can replace...
Production Checklist
...e request data server-sideescape public strings in viewsprotect admin routes with middlewarecheck that API payload limits fit the project Logs Use JSON logs when possible: LOG_CHAN...
Testing An App
...errors); } } Route Smoke Test Smoke tests check that important public routes still respond after framework updates. public function testDocumentationRouteResponds(): void { $_SERVE...
Upgrade Guide
... nodejs/ resources/ scripts/ tests/ These folders should contain your routes, controllers, modules, views, documentation, assets, migrations, and tests. Update Flow Preview first: ...