PHP Class App_Frontend, atk4

Inheritance: extends App_Web
Mostrar archivo Open project: atk4/atk4 Class Usage Examples

Public Properties

Property Type Description
$app App_Frontend
$layout AbstractView Object for a custom layout, introduced in 4.3.
$namespace_routes array List of pages which are routed into namespace.
$page_class string Class which is used for static pages.
$page_object Page When page is determined, it's class instance is created and stored in here.

Public Methods

Method Description
caughtException ( Exception $e )
initLayout ( ) Content in the global (shared.html) template is rendered by page object.
layout_Content ( )
pageNotFound ( Exception $e ) This method is called as a last resort, when page is not found.
routePages ( string $prefix, string $ns = null ) Pages with a specified prefix will loaded from a specified namespace.

Protected Methods

Method Description
loadStaticPage ( string $page ) : Page Attempts to load static page. Raises exception if not found.

Method Details

caughtException() public method

public caughtException ( Exception $e )
$e Exception

initLayout() public method

This method loads either class or static file.
public initLayout ( )

layout_Content() public method

public layout_Content ( )

loadStaticPage() protected method

Attempts to load static page. Raises exception if not found.
protected loadStaticPage ( string $page ) : Page
$page string
return Page

pageNotFound() public method

It receives the exception with the actual error.
public pageNotFound ( Exception $e )
$e Exception

routePages() public method

Pages with a specified prefix will loaded from a specified namespace.
public routePages ( string $prefix, string $ns = null )
$prefix string
$ns string

Property Details

$app public_oe property

public App_Frontend $app
return App_Frontend

$layout public_oe property

Object for a custom layout, introduced in 4.3.
public AbstractView $layout
return AbstractView

$namespace_routes public_oe property

List of pages which are routed into namespace.
public array $namespace_routes
return array

$page_class public_oe property

Class which is used for static pages.
public string $page_class
return string

$page_object public_oe property

When page is determined, it's class instance is created and stored in here.
public Page $page_object
return Page