Basic
Less than 1 minute
Basic
Basic controller base class.
class Basic extends \Hazaar\ControllerExtends: Hazaar\Controller
This controller type is intended for request handlers that do not require view rendering. It is commonly used for API and AJAX endpoints where the action method returns a response directly.
Compared to view-driven controller types, this base class keeps request handling lightweight by avoiding layout/view orchestration while preserving the standard controller lifecycle and routing behavior.
Properties
name
Controller type identifier.
protected string $name = 'basic'Type: string
Methods
__construct
public __construct(Request $request): voidParameters
| Parameter | Type | Description |
|---|---|---|
$request | Hazaar\Application\Request |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000