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\Controller\Admin\unknown $permissions)
Check current admin user authorisations. An ADMIN role is assumed.
| \Thelia\Controller\Admin\unknown | $permissions | a single permission or an array of permissions. |
if permissions are not granted ti the current user.
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
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,
getSecurityContext( $context) : \Thelia\Core\Security\SecurityContext
Return the security context, by default in admin mode.
| $context |
validateForm(\Thelia\Form\BaseForm $aBaseForm, string $expectedMethod) : \Symfony\Component\Form\Form
Validate a BaseForm
| \Thelia\Form\BaseForm | $aBaseForm | the form |
| string | $expectedMethod | the expected method, POST or GET, or null for any of them |
is the form contains error, or the method is not the right one
Form the symfony form object