TEMPLATE_404
TEMPLATE_404
The defaut administration controller. Basically, display the login form if user is not yet logged in, or back-office home page if the user is logged in.
checkAuth(\Thelia\Admin\Controller\unknown $permissions)
Check current admin user authorisations. An ADMIN role is assumed.
| \Thelia\Admin\Controller\unknown | $permissions | a single permission or an array of permissions. |
if permissions are not granted ti the current user.
render(mixed $templateName, array $args) : \Symfony\Component\HttpFoundation\Response
Render the given template, and returns the result as an Http Response.
| mixed | $templateName | the complete template name, with extension |
| array | $args | the template arguments |
renderRaw(mixed $templateName, array $args) : \Symfony\Component\HttpFoundation\Response
Render the given template, and returns the result as a string.
| mixed | $templateName | the complete template name, with extension |
| array | $args | the template arguments |
dispatch(string $eventName, \Thelia\Core\Event\ActionEvent $event)
Dispatch a Thelia event to modules
| string | $eventName | a TheliaEvent name, as defined in TheliaEvents class |
| \Thelia\Core\Event\ActionEvent | $event | the event |
getParserContext() : \Thelia\Core\Template\ParserContext
Return the parser context,
forward(string $controller, array $path, array $query) : \Symfony\Component\HttpFoundation\Response
Forwards the request to another controller.
| string | $controller | The controller name (a string like BlogBundle:Post:index) |
| array | $path | An array of path parameters |
| array | $query | An array of query parameters |
A Response instance