內容目录

上一个主题

< Class Phalcon\Mvc\View

下一个主题

Class Phalcon\Mvc\View\Engine\Php >

Phalcon玩家群:150237524Phalcon玩家

Abstract class Phalcon\Mvc\View\Engine

extends abstract class Phalcon\Di\Injectable

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

Source on GitHub

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\ViewBaseInterface $view, [Phalcon\DiInterface $dependencyInjector])

Phalcon\Mvc\View\Engine constructor

public getContent ()

Returns cached output on another view stage

public string partial (string $partialPath, [array $params])

Renders a partial inside another view

public getView ()

Returns the view component related to the adapter

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

Sets the dependency injector

public 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 getEventsManager () inherited from Phalcon\Di\Injectable

Returns the internal event manager

public __get (mixed $propertyName) inherited from Phalcon\Di\Injectable

Magic method __get

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

...