I wish use this template engine in phalcon 2.0
.
I created project via phalcon-devtools
- should be fine. This template engine doesn't work. The default is *.phtml
it works but I wish volt
. Now project has this hierarchy
:
phalcon-project folder:
- public
- index.php
- config
- apps
- frontned
- controllers
- models
- views
- index
- index.volt
- layouts
- main.volt
- backend
- cache
index.volt
looks like:
{% extends "layouts/main.volt" %}
{% block content %}test{% endblock %}
and layout - main.volt
contains this:
{{ content() }}
In this way I get empty, blank page. Can you help me? Thanks in advance.