\Ceo\Core\HelpersTemplateHelper

Allows the generation of template partials. Unfortunately, Phalcon's standard views seem to only render once per request, without some crazy hackery. This allows you to generate multiple instances of Volt templates.

It may be replaced with Twig compiler in the future, so you've been warned.

include and extends are a bit wonky in this set up, so the string './' in either of those tags will be replaced with the absolute path to the current template. For example:

{% extends './base.volt' %}

Summary

Methods
Properties
Constants
__construct()
render()
$compiledPath
$templatesDir
$compiler
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$compiledPath

$compiledPath : 

Type

$templatesDir

$templatesDir : 

Type

$compiler

$compiler : 

Type

Methods

__construct()

__construct(string  $templatesDir) 

Constructor

Parameters

string $templatesDir

Template root path

render()

render(string  $templatePath, array  $data) 

Render template

Parameters

string $templatePath

relative path from root

array $data

Data to be passed to template