W3cubDocs

/Phalcon 2

Abstract class Phalcon\Mvc\View\Engine

extends abstract class Phalcon\DI\Injectable

implements Phalcon\Events\EventsAwareInterface, Phalcon\DI\InjectionAwareInterface, Phalcon\Mvc\View\EngineInterface

All the template engine adapters must inherit this class. This provides basic interfacing between the engine and the Phalcon\Mvc\View component.

Methods

public __construct (Phalcon\Mvc\ViewInterface $view, [Phalcon\DiInterface $dependencyInjector])

Phalcon\Mvc\View\Engine constructor

public array getContent ()

Returns cached ouput on another view stage

public string partial (string $partialPath)

Renders a partial inside another view

public Phalcon\Mvc\ViewInterface getView ()

Returns the view component related to the adapter

public setDI (Phalcon\DiInterface $dependencyInjector) inherited from Phalcon\DI\Injectable

Sets the dependency injector

public Phalcon\DiInterface getDI () inherited from Phalcon\DI\Injectable

Returns the internal dependency injector

public setEventsManager (Phalcon\Events\ManagerInterface $eventsManager) inherited from Phalcon\DI\Injectable

Sets the event manager

public Phalcon\Events\ManagerInterface getEventsManager () inherited from Phalcon\DI\Injectable

Returns the internal event manager

public __get (unknown $property) inherited from Phalcon\DI\Injectable

Magic method __get

abstract public render (string $path, array $params, [boolean $mustClean]) inherited from Phalcon\Mvc\View\EngineInterface

Renders a view using the template engine

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Mvc_View_Engine.html