Basic
Less than 1 minute
Basic
Basic controller base class.
class Basic extends \Hazaar\Controller\ControllerThis 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'Methods
__construct
public __construct(Request $request): voidParameters
| Parameter | Type | Description |
|---|---|---|
$request | Request |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000