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

volt join filter dont work

Debian 10, PHP 7.3, Phalcon 4 documentation code dont work {# join filter #} {% set joined = 'a'..'z'|join(',') %}

get error: Warning: join(): Invalid arguments passed



4.1k
Accepted
answer

It works, but maybe it's not clear in documentation how it works. Join is alias to php implode function where you have separator and array. So you need put code like this:

{% set joined = ['a','z']|join(',') %}


1.3k

thank you! I understand. In phalcon 3 was join(), now we must write join('')