Core API

Module: Core

Namespace root: DafCore

The site already contains dedicated static Core type pages. Use this index to navigate quickly.

Primary Runtime Types

Controller Extension Points (Protected)

File paths:

DafPhpFramwork/DafCore/Controllers/Controller.php
DafPhpFramwork/DafCore/Controllers/ApiController.php

  • Controller::Ok/Created/BadRequest/NotFound/Forbidden/Unauthorized/InternalError/NoContent
  • Controller::Status, Controller::RenderView
  • ApiController::Ok/Created/NoContent/BadRequest/NotFound/Forbidden/Unauthorized/InternalError
  • BaseController::Redirect, BaseController::RedirectBack

Common Extra Types

  • Session (stateful session API), AntiForgery (CSRF token lifecycle).
  • Component protected/virtual lifecycle points: OnLoad(), OnRender(), Render().
  • RouteMatchContext and ApplicationContext for middleware and endpoint metadata flow.