Skip to content

Web: MiniWebApp routing pattern (front controller + path dispatch) #210

@PurHur

Description

@PurHur

Problem

#67 defines the reference app. This issue specifies the routing architecture so implementers know the target before writing 003-MiniWebApp.

Goal

Document and implement a minimal front-controller pattern:

public/index.php  → router → handlers/
templates/*.php   → include with extract()

Routes (minimum)

Method Path Behavior
GET / Home template
GET /hello?name= Greet (#1 parity)
POST /contact Form validate + thank-you
GET /api/status JSON (#61)

Tasks

Acceptance criteria

All routes pass PHPT/web tests in #68.

Dependencies

Files

  • examples/003-MiniWebApp/

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:webWeb / CGI / superglobalsenhancementNew feature or requestphase-5:reference-appPhase 5 – reference web application

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions