I am trying to get volt setup in phalcon. I used the dev tools to create the project. I tried to pass in a variable using both methods, the magic method and the setVar() method.
$posts = new Posts();
$posts->title = "asdf";
$this->view->posts = $posts;
#and
$this->view->setVar("posts", $posts);
Then in my index.volt file under ../views/posts/index.volt
<h1>Congratulations!</h1>
{% if ((posts is empty)) %}
<p>empty</p>
{% endif %}
<p>{{ posts.title }}<p> # <- THIS IS THE TROUBLED CODE
<p>You're now flying with Phalcon. Great things are about to happen!</p>
It displays: https://picpaste.com/pics/Screen_Shot_2014-10-16_at_4.49.07_PM-U1ZRXQMX.1413492690.png
What am I doing wrong? Any help is apreciated.
Thanks,
Stephen