We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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!!