$container
$container : \FW\Utils\Container
View manager class
$container : \FW\Utils\Container
$currentHelper : \FW\View\Standard\HelperInterface
The content type of the last called helper
__construct(\FW\Utils\Container $c)
Classes that inherit from this class cannot override the constructor.
Sets up the injector
\FW\Utils\Container | $c | The dependency injection container |
registerHelper(string $className, string|null $alias = null)
Registers a helper
If alias is provided, the helper is accessible via $view->helper('whatever-alias-you-provided'). If not, it will be accessible through the View classname.
string | $className | Classname of the helper to register |
string|null | $alias | Alias of the class if desired |
helper(string $name) : \FW\View\Standard\HelperInterface|null
Retrieves a helper
string | $name | The name of the helper |