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
public addFilter (mixed $name, mixed $definition) Register a new filter in the compiler
public string compileEcho (array $statement) Compiles a ‘{{‘ ‘}}’ statement returning PHP code
public getFunctions () Register the user registered functions
public compileElseIf (array $statement) Compiles a “elseif” statement returning PHP code
public compileCache (array $statement, [mixed $extendsMode]) Compiles a “cache” statement returning PHP code
public slice (mixed $value, [mixed $start], [mixed $end]) Extracts a slice from a string/array/traversable
public compileForElse () Generates a ‘forelse’ PHP code
Page 1 of 6