MicroPresenter
final class MicroPresenter implements IPresenter
Micro presenter.
Methods
__construct(Container|null $context = null, IRequest|null $httpRequest = null, Router|null $router = null)
No description
Container|null
getContext()
Gets the context.
createTemplate(string|null $class = null, callable|null $latteFactory = null)
Template factory.
redirectUrl(string $url, int $httpCode = Http\IResponse::S302_FOUND)
Redirects to another URL.
void
error(string $message = '', int $httpCode = Http\IResponse::S404_NOT_FOUND)
Throws HTTP error.
Request|null
getRequest()
No description
Details
at line 30
__construct(Container|null $context = null, IRequest|null $httpRequest = null, Router|null $router = null)
No description
at line 41
Container|null
getContext()
Gets the context.
at line 114
Template
createTemplate(string|null $class = null, callable|null $latteFactory = null)
Template factory.
at line 139
RedirectResponse
redirectUrl(string $url, int $httpCode = Http\IResponse::S302_FOUND)
Redirects to another URL.
at line 149
void
error(string $message = '', int $httpCode = Http\IResponse::S404_NOT_FOUND)
Throws HTTP error.
at line 155
Request|null
getRequest()
No description
Traits
Strict class for better experience.