PHP Class Contao\BackendMain

Inheritance: extends Backend
Exibir arquivo Open project: contao/core-bundle Class Usage Examples

Protected Properties

Property Type Description
$Template BackendTemplate | object
$objAjax Ajax Current Ajax object

Public Methods

Method Description
__construct ( ) Initialize the controller
run ( ) : Response Run the controller and parse the login template

Protected Methods

Method Description
output ( ) : Response Output the template file
welcomeScreen ( ) : string Add the welcome screen

Method Details

__construct() public method

1. Import the user 2. Call the parent constructor 3. Authenticate the user 4. Load the language files DO NOT CHANGE THIS ORDER!
public __construct ( )

output() protected method

Output the template file
protected output ( ) : Response
return Symfony\Component\HttpFoundation\Response

run() public method

Run the controller and parse the login template
public run ( ) : Response
return Symfony\Component\HttpFoundation\Response

welcomeScreen() protected method

Add the welcome screen
protected welcomeScreen ( ) : string
return string

Property Details

$Template protected_oe property

protected BackendTemplate,contao|object $Template
return BackendTemplate | object

$objAjax protected_oe property

Current Ajax object
protected Ajax,contao $objAjax
return Ajax