PHP 클래스 App_Frontend, atk4

상속: extends App_Web
파일 보기 프로젝트 열기: atk4/atk4 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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