PHP Класс App_Frontend, atk4

Наследование: extends App_Web
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
loadStaticPage ( string $page ) : Page Attempts to load static page. Raises exception if not found.

Описание методов

caughtException() публичный Метод

public caughtException ( Exception $e )
$e Exception

initLayout() публичный Метод

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

layout_Content() публичный Метод

public layout_Content ( )

loadStaticPage() защищенный Метод

Attempts to load static page. Raises exception if not found.
protected loadStaticPage ( string $page ) : Page
$page string
Результат Page

pageNotFound() публичный Метод

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

routePages() публичный Метод

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

Описание свойств

$app публичное свойство

public App_Frontend $app
Результат App_Frontend

$layout публичное свойство

Object for a custom layout, introduced in 4.3.
public AbstractView $layout
Результат AbstractView

$namespace_routes публичное свойство

List of pages which are routed into namespace.
public array $namespace_routes
Результат array

$page_class публичное свойство

Class which is used for static pages.
public string $page_class
Результат string

$page_object публичное свойство

When page is determined, it's class instance is created and stored in here.
public Page $page_object
Результат Page