Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Cant use models

Hi guys, I need some help. I'm using Phalcon and Volt. I use my model Users to save into database but when I try to make a simple for in Volt the compilers responds that variable users is not defined. Any advice?

{% block body %}
{{ "hello"|capitalize }}
ola
{% for user in users %}
 * Name : {{ user[name] }}
{% endfor %}
{% endblock %}

i didnt use phalcon dev tools do create the class. is that the problem??

edited Aug '14

Great help!! Thanks!!