MicroPresenter
final class MicroPresenter implements IPresenter
Micro presenter.
Methods
__construct(Container $context = null, IRequest $httpRequest = null, Router $router = null)
No description
Container|null
getContext()
Gets the context.
createTemplate(string $class = null, callable $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 40
__construct(Container $context = null, IRequest $httpRequest = null, Router $router = null)
No description
at line 54
Container|null
getContext()
Gets the context.
at line 122
ITemplate
createTemplate(string $class = null, callable $latteFactory = null)
Template factory.
at line 146
RedirectResponse
redirectUrl(string $url, int $httpCode = Http\IResponse::S302_FOUND)
Redirects to another URL.
at line 156
void
error(string $message = '', int $httpCode = Http\IResponse::S404_NOT_FOUND)
Throws HTTP error.
at line 162
Request|null
getRequest()
No description
Traits
Strict class for better experience.