PHP 클래스 App\Core\Controller

파일 보기 프로젝트 열기: nova-framework/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$layout string The currently used Layout.
$template string The currently used Template.

공개 메소드들

메소드 설명
__construct ( ) Create a new Controller instance.
getLayout ( string | null $layout = null, array $data = [] ) : Template\Template | View\View Return a Layout instance.
getLayoutName ( ) : string Return the current Layout (class) name.
getTemplate ( ) : string Return the current Template name.

보호된 메소드들

메소드 설명
getView ( array $data = [] ) : Nova\View\View Return a default View instance.
processResponse ( mixed $response ) : Response Create from the given result a Response instance and send it.

메소드 상세

__construct() 공개 메소드

Create a new Controller instance.
public __construct ( )

getLayout() 공개 메소드

Return a Layout instance.
public getLayout ( string | null $layout = null, array $data = [] ) : Template\Template | View\View
$layout string | null
$data array
리턴 Template\Template | View\View

getLayoutName() 공개 메소드

Return the current Layout (class) name.
public getLayoutName ( ) : string
리턴 string

getTemplate() 공개 메소드

Return the current Template name.
public getTemplate ( ) : string
리턴 string

getView() 보호된 메소드

Return a default View instance.
protected getView ( array $data = [] ) : Nova\View\View
$data array
리턴 Nova\View\View

processResponse() 보호된 메소드

Create from the given result a Response instance and send it.
protected processResponse ( mixed $response ) : Response
$response mixed
리턴 Symfony\Component\HttpFoundation\Response

프로퍼티 상세

$layout 보호되어 있는 프로퍼티

The currently used Layout.
protected string $layout
리턴 string

$template 보호되어 있는 프로퍼티

The currently used Template.
protected string $template
리턴 string