\Thelia\Admin\ControllerBaseAdminController

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.

Summary

Methods
Properties
Constants
processTemplateAction()
No public properties found
TEMPLATE_404
render()
renderRaw()
getParserContext()
getSecurityContext()
getRequest()
dispatch()
getSession()
getParser()
forward()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

TEMPLATE_404

TEMPLATE_404

Methods

processTemplateAction()

processTemplateAction( $template)

Parameters

$template

render()

render(mixed $templateName, array $args) : \Symfony\Component\HttpFoundation\Response

Render the givent template, and returns the result as an Http Response.

Parameters

mixed $templateName

the complete template name, with extension

array $args

the template arguments

Returns

\Symfony\Component\HttpFoundation\Response

renderRaw()

renderRaw(mixed $templateName, array $args) : \Symfony\Component\HttpFoundation\Response

Render the given template, and returns the result as a string.

Parameters

mixed $templateName

the complete template name, with extension

array $args

the template arguments

Returns

\Symfony\Component\HttpFoundation\Response

getParserContext()

getParserContext( $context) : \Thelia\Core\Template\ParserContext

Return the parser context,

Parameters

$context

Returns

\Thelia\Core\Template\ParserContext

getSecurityContext()

getSecurityContext( $context) : \Thelia\Admin\Controller\Thelia\Core\Security\SecurityContext

Return the security context, by default in admin mode.

Parameters

$context

Returns

\Thelia\Admin\Controller\Thelia\Core\Security\SecurityContext

getRequest()

getRequest() : \Symfony\Component\HttpFoundation\Request

Returns

\Symfony\Component\HttpFoundation\Request

dispatch()

dispatch(string $eventName, \Thelia\Core\Event\ActionEvent $event)

Dispatch a Thelia event to modules

Parameters

string $eventName

a TheliaEvent name, as defined in TheliaEvents class

\Thelia\Core\Event\ActionEvent $event

the event

getSession()

getSession() : \Symfony\Component\HttpFoundation\Session\SessionInterface

Returns the session from the current request

Returns

\Symfony\Component\HttpFoundation\Session\SessionInterface

getParser()

getParser() : \Thelia\Admin\Controller\a

Returns

\Thelia\Admin\Controller\a —

ParserInterfac instance parser

forward()

forward(string $controller, array $path, array $query) : \Symfony\Component\HttpFoundation\Response

Forwards the request to another controller.

Parameters

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

Returns

\Symfony\Component\HttpFoundation\Response —

A Response instance