class DefaultController extends BaseFrontController

This is the defualt Thelia controller, which is called when no controller was found to process the request.

Traits

Symfony\Component\DependencyInjection\ContainerAwareTrait

Constants

EMPTY_FORM_NAME

CONTROLLER_TYPE

Methods

EventDispatcher
getDispatcher()

Return the event dispatcher,

getTranslator()

return the Translator

getMailer()

return an instance of \Swift_Mailer with good Transporter configured.

createForm($name, $type = 'form', array $data = array(), array $options = array())

No description

ContainerInterface
getContainer()

No description

string
getControllerType()

No description

checkAuth()

No description

noAction( Request $request)

This is the default Thelia behaviour if no action is defined.

emptyRoute()

No description

Details

in BaseController at line 128
EventDispatcher getDispatcher()

Return the event dispatcher,

Return Value

EventDispatcher

in BaseController at line 138
Translator getTranslator()

return the Translator

Return Value

Translator

in BaseController at line 545
MailerFactory getMailer()

return an instance of \Swift_Mailer with good Transporter configured.

Return Value

MailerFactory

in BaseController at line 569
BaseForm createForm($name, $type = 'form', array $data = array(), array $options = array())

Parameters

$name
$type
array $data
array $options

Return Value

BaseForm This method builds a thelia form with its name

in BaseController at line 589
ContainerInterface getContainer()

Return Value

ContainerInterface

in BaseFrontController at line 39
string getControllerType()

Return Value

string

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.

Parameters

Request $request

at line 72
emptyRoute()