PHP 클래스 library\App\View

Extends \Zend\View\Renderer\RendererInterface for interoperability with Zend_View.
저자: Bogdan Ghervan ([email protected])
상속: extends Slim\View, implements Zend\View\Renderer\RendererInterface
파일 보기 프로젝트 열기: cronkeep/cronkeep 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_helperCache array Local view helper cache.
$_helperManager Zend\View\HelperPluginManager View helper manager.

공개 메소드들

메소드 설명
__call ( string $method, array $args ) : mixed Provides access to view helpers.
__construct ( ) : void Class constructor.
getEngine ( ) : Layout Returns the template engine object.
partial ( string $template, array $data = [] ) : string Renders template fragment in its own variable scope.
render ( string $template, array $data = null ) : string Renders template and injects it to the layout file.
setResolver ( Zend\View\Resolver\ResolverInterface $resolver ) : Layout Set the resolver used to map a template name to a resource the renderer may consume.
url ( string $path = null ) : string Generates a fully qualified URL to the given path.

메소드 상세

__call() 공개 메소드

Provides access to view helpers.
public __call ( string $method, array $args ) : mixed
$method string
$args array
리턴 mixed

__construct() 공개 메소드

Initializes helper manager.
public __construct ( ) : void
리턴 void

getEngine() 공개 메소드

Returns the template engine object.
public getEngine ( ) : Layout
리턴 Layout

partial() 공개 메소드

Renders template fragment in its own variable scope.
public partial ( string $template, array $data = [] ) : string
$template string
$data array
리턴 string

render() 공개 메소드

Renders template and injects it to the layout file.
public render ( string $template, array $data = null ) : string
$template string
$data array
리턴 string

setResolver() 공개 메소드

Set the resolver used to map a template name to a resource the renderer may consume.
public setResolver ( Zend\View\Resolver\ResolverInterface $resolver ) : Layout
$resolver Zend\View\Resolver\ResolverInterface
리턴 Layout

url() 공개 메소드

Generates a fully qualified URL to the given path.
public url ( string $path = null ) : string
$path string
리턴 string

프로퍼티 상세

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

Local view helper cache.
protected array $_helperCache
리턴 array

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

View helper manager.
protected HelperPluginManager,Zend\View $_helperManager
리턴 Zend\View\HelperPluginManager