DefaultController
class DefaultController extends BaseFrontController
This is the defualt Thelia controller, which is called when no controller was found to process the request.
Traits
Constants
EMPTY_FORM_NAME |
|
CONTROLLER_TYPE |
|
Methods
return an instance of \Swift_Mailer with good Transporter configured.
No description
This is the default Thelia behaviour if no action is defined.
No description
Details
in
BaseController at line 128
EventDispatcher
getDispatcher()
Return the event dispatcher,
in
BaseController at line 138
Translator
getTranslator()
return the Translator
in
BaseController at line 545
MailerFactory
getMailer()
return an instance of \Swift_Mailer with good Transporter configured.
in
BaseController at line 569
BaseForm
createForm($name, $type = 'form',
array $data = array(),
array $options = array())
in
BaseController at line 589
ContainerInterface
getContainer()
in
BaseFrontController at line 39
string
getControllerType()
in
BaseFrontController at line 29
checkAuth()
at line 42
noAction(
Request $request)
This is the default Thelia behaviour if no action is defined.
If the request contains a 'view' parameter, this view will be displayed. If the request contains a '_view' attribute (set in the route definition, for example), this view will be displayed. Otherwise, we will use the "index" view.
Additionaly, if the URL rewriting is enabled, the method will check if a redirect to the pâge rewritten URL should be done.