Helper
Less than 1 minute
Helper
Base class for view helpers.
class Helper implements \Hazaar\View\HelperInterfaceHelper classes extend this abstraction to provide reusable presentation utilities for templates and views. It standardizes helper construction, string casting behavior, rendering entry points, and simple asset URL generation helpers used by derived helper implementations.
Properties
args
protected array $argsMethods
__construct
public __construct(array $args): voidParameters
| Parameter | Type | Description |
|---|---|---|
$args | array |
__toString
Cast helper output to string.
public __toString(): stringDelegates to {@see render()} so helpers can be embedded directly in string contexts within templates.
render
Renders the view helper output.
public render(): stringgetName
Retrieves the short class name of the current object.
public getName(): stringasset
Build an asset URL relative to the Hazaar asset namespace.
protected asset(string $path): URLParameters
| Parameter | Type | Description |
|---|---|---|
$path | string | asset path segment |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000