PHP Class Contao\FrontendIndex

Inheritance: extends Frontend
Mostra file Open project: contao/core-bundle Class Usage Examples

Public Methods

Method Description
__construct ( ) Initialize the object
renderPage ( Collection | PageModel[] | PageModel $pageModel ) : Response Render a page
run ( ) : Response Run the controller

Protected Methods

Method Description
outputFromCache ( ) Try to load the page from the cache

Method Details

__construct() public method

Initialize the object
public __construct ( )

outputFromCache() protected method

Try to load the page from the cache
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use the kernel.request event instead.
protected outputFromCache ( )

renderPage() public method

Render a page
public renderPage ( Collection | PageModel[] | PageModel $pageModel ) : Response
$pageModel Contao\Model\Collection | PageModel[] | PageModel
return Symfony\Component\HttpFoundation\Response

run() public method

Run the controller
public run ( ) : Response
return Symfony\Component\HttpFoundation\Response