ControllerHelperTrait
trait ControllerHelperTrait
Controller helper trait.
Traits
Container aware trait.
Properties
Methods
mixed
__get(string $key)
Resolves item from the container using overloading.
from ContainerAwareTrait
fileResponse(string $file)
Returns a file response container.
redirectResponse(string $location, array $routeParams = [], array $queryParams = [], string $separator = '&', mixed $language = true)
Returns a redirect response container.
jsonResponse(mixed $data, int $options = 0)
Returns a JSON response builder.
Details
in ContainerAwareTrait at line 67
setContainer(Container $container)
Sets the container instance.
in ContainerAwareTrait at line 78
mixed
__get(string $key)
Resolves item from the container using overloading.
at line 32
protected File
fileResponse(string $file)
Returns a file response container.
at line 47
protected Redirect
redirectResponse(string $location, array $routeParams = [], array $queryParams = [], string $separator = '&', mixed $language = true)
Returns a redirect response container.
at line 75
protected JSON
jsonResponse(mixed $data, int $options = 0)
Returns a JSON response builder.