public compile (mixed $templatePath, [mixed $extendsMode]) Compiles a template into a file applying the compiler
public setDI (Phalcon\DiInterface $dependencyInjector)
public addExtension (mixed $extension) Registers a Volt’s extension
extends abstract class Phalcon\Mvc\View\Engine
public compileElseIf (array $statement) Compiles a “elseif” statement returning PHP code
public setOption (string $option, mixed $value) Sets a single compiler option
public addFunction (mixed $name, mixed $definition) Register a new function in the compiler
public array parse (string $viewCode) Parses a Volt template returning its intermediate representation
public compileForElse () Generates a ‘forelse’ PHP code
public slice (mixed $value, [mixed $start], [mixed $end]) Extracts a slice from a string/array/traversable
Page 1 of 6