PHP Class library\App\View

Extends \Zend\View\Renderer\RendererInterface for interoperability with Zend_View.
Author: Bogdan Ghervan ([email protected])
Inheritance: extends Slim\View, implements Zend\View\Renderer\RendererInterface
Afficher le fichier Open project: cronkeep/cronkeep Class Usage Examples

Protected Properties

Свойство Type Description
$_helperCache array Local view helper cache.
$_helperManager Zend\View\HelperPluginManager View helper manager.

Méthodes publiques

Méthode Description
__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.

Method Details

__call() public méthode

Provides access to view helpers.
public __call ( string $method, array $args ) : mixed
$method string
$args array
Résultat mixed

__construct() public méthode

Initializes helper manager.
public __construct ( ) : void
Résultat void

getEngine() public méthode

Returns the template engine object.
public getEngine ( ) : Layout
Résultat Layout

partial() public méthode

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

render() public méthode

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

setResolver() public méthode

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
Résultat Layout

url() public méthode

Generates a fully qualified URL to the given path.
public url ( string $path = null ) : string
$path string
Résultat string

Property Details

$_helperCache protected_oe property

Local view helper cache.
protected array $_helperCache
Résultat array

$_helperManager protected_oe property

View helper manager.
protected HelperPluginManager,Zend\View $_helperManager
Résultat Zend\View\HelperPluginManager