This chart shows how a browser request moves through the MindVisionCode framework and how a response is built and returned.
flowchart TD
A[Browser Request] --> B[public/index.php]
B --> C[autoload.php / vendor autoload]
B --> D[ensureSessionStarted()]
B --> E[Create App + Router]
B --> F[Load routes/web.php]
B --> G[Request::capture()]
G --> H[Dispatcher::dispatch()]
H --> I{Route matched?}
I -- No --> J[Response::notFound()]
I -- Yes --> K[Route::dispatch()]
K --> L[App::call()]
L --> M{Handler type}
M -- Controller method --> N[Controller action]
M -- Closure --> O[Route closure]
N --> P[Repository / ViewModel / Service calls]
P --> Q[Database::query() / execute()]
N --> R[view() / json() / redirect()]
O --> R
R --> S[Response object]
J --> S
H --> T[normalizeResponse()]
T --> S
S --> U[Response::send()]
U --> V[Browser receives HTML / JSON / redirect]
Controller -> view() -> View::render() -> template -> layout -> Response
Controller -> json() -> Response::json() -> Response::send()
Controller -> redirect() -> Response::redirect() -> Response::send()
public/index.php bootstraps the appCore\Dispatcher matches routes and handles errorsCore\Route extracts route parametersCore\App invokes controller methods or closuresCore\Controller gives actions helper methodsCore\View renders templates into a layoutCore\Response sends the final outputPowered by TurnKey Linux.