多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# Class **Phalcon\Mvc\View\Engine\Volt**[](# "永久链接至标题") *extends* abstract class [*Phalcon\Mvc\View\Engine*](#) *implements*`Phalcon\Di\InjectionAwareInterface`, [*Phalcon\Events\EventsAwareInterface*](#), [*Phalcon\Mvc\View\EngineInterface*](#) Designer friendly and fast template engine for PHP written in Zephir/C ### Methods[](# "永久链接至标题") public **setOptions** (*unknown* $options) Set Volt's options public **getOptions** () Return Volt's options public **getCompiler** () Returns the Volt's compiler public **render** (*unknown* $templatePath, *unknown* $params, [*unknown* $mustClean]) Renders a view using the template engine public **length** (*unknown* $item) Length filter. If an array/object is passed a count is performed otherwise a strlen/mb_strlen public **isIncluded** (*unknown* $needle, *unknown* $haystack) Checks if the needle is included in the haystack public **convertEncoding** (*unknown* $text, *unknown* $from, *unknown* $to) Performs a string conversion public **slice** (*unknown* $value, [*unknown* $start], [*unknown* $end]) Extracts a slice from a string/array/traversable object value public **sort** (*unknown* $value) Sorts an array public **callMacro** (*unknown* $name, *unknown* $arguments) Checks if a macro is defined and calls it public **__construct** (*unknown* $view, [*unknown* $dependencyInjector]) inherited from Phalcon\Mvc\View\Engine Phalcon\Mvc\View\Engine constructor public **getContent** () inherited from Phalcon\Mvc\View\Engine Returns cached output on another view stage public *string***partial** (*string* $partialPath, [*array* $params]) inherited from Phalcon\Mvc\View\Engine Renders a partial inside another view public **getView** () inherited from Phalcon\Mvc\View\Engine Returns the view component related to the adapter public **setDI** (*unknown* $dependencyInjector) inherited from Phalcon\Di\Injectable Sets the dependency injector public **getDI** () inherited from Phalcon\Di\Injectable Returns the internal dependency injector public **setEventsManager** (*unknown* $eventsManager) inherited from Phalcon\Di\Injectable Sets the event manager public **getEventsManager** () inherited from Phalcon\Di\Injectable Returns the internal event manager public **__get** (*unknown* $propertyName) inherited from Phalcon\Di\Injectable Magic method __get | - [索引](# "总目录") - [下一页](# "Class Phalcon\Mvc\View\Engine\Volt\Compiler") | - [上一页](# "Class Phalcon\Mvc\View\Engine\Php") | - [API Indice](#) »