PHP 클래스 Phrozn\Site\View\Plain

저자: Victor Farazdagi
상속: extends Base, implements Phrozn\Site\View
파일 보기 프로젝트 열기: farazdagi/phrozn 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $inputFile = null, string $outputDir = null ) : Phrozn\Site\View Initialize view
getOutputFile ( ) : string Get output file path
render ( array $vars = [] ) : string Render view. Twig views are rendered within layout.

메소드 상세

__construct() 공개 메소드

Initialize view
public __construct ( string $inputFile = null, string $outputDir = null ) : Phrozn\Site\View
$inputFile string Path to view source file
$outputDir string File destination path
리턴 Phrozn\Site\View

getOutputFile() 공개 메소드

Get output file path
public getOutputFile ( ) : string
리턴 string

render() 공개 메소드

Render view. Twig views are rendered within layout.
public render ( array $vars = [] ) : string
$vars array List of variables passed to text processors
리턴 string