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.

Volt Tag namespace bug

I have a model Tag that passed to view of volt tamplate generated by phalcon tools. I have NOTICE The code in view

{{ dump(tag) }}
        {{ tag.id }}

the result of dump is

 object(Vokuro\Models\Tag)#136 (16) {
  ["id"]=>
  int(1)
  ["name"]=>
  string(24) "ывап ывап ыва" ....

The NOTICE answer:


Notice:Undefined property: Phalcon\Tag::$id in /var/www/vokuro/cache/volt/_var_www_vokuro_app_views_tag_search.volt.php on line 28

As you can see the one object has different namespace.



6.8k
Accepted
answer

work after rename varible tag to tag2 all work (0-0)