v0

\Hubleto\Framework\Interfaces\RendererInterface

Methods

init

public init(): void

getTwig

public getTwig(): \Twig\Environment

addNamespace

public addNamespace(string $folder, string $namespace): mixed

Parameters:

Parameter Type Description
$folder string
$namespace string

renderView

public renderView(string $view, array $vars = []): string

Parameters:

Parameter Type Description
$view string
$vars array

render

public render(string $route = '', array $params = []): string

Parameters:

Parameter Type Description
$route string
$params array

renderSuccess

public renderSuccess(mixed $return): string

Parameters:

Parameter Type Description
$return mixed

renderWarning

public renderWarning(mixed $message, mixed $isHtml = true): string

Parameters:

Parameter Type Description
$message mixed
$isHtml mixed

renderFatal

public renderFatal(mixed $message, mixed $isHtml = true): string

Parameters:

Parameter Type Description
$message mixed
$isHtml mixed

renderHtmlFatal

public renderHtmlFatal(mixed $message): string

Parameters:

Parameter Type Description
$message mixed

renderExceptionHtml

public renderExceptionHtml(mixed $exception, array $args = []): string

Parameters:

Parameter Type Description
$exception mixed
$args array

renderHtmlWarning

public renderHtmlWarning(mixed $warning): string

Parameters:

Parameter Type Description
$warning mixed

onBeforeRender

public onBeforeRender(): void

onAfterRender

public onAfterRender(): void
www.hubleto.com | Found a bug or missing something? Report an issue via GitHub.