How can I show a list of comma-separated related model titles using
Phalcon's Volt templates?
I want to display a list of related models in my view, as a
comma-separated list.
Say I have a Posts model, and related Tags, post.getTags() gets the
related models but I can't see how to then concatenate them in a way that
will produce the right output.
In plain PHP views, I'd simply put the HTML into an array and implode(',
', $tagLinks).
How can I achieve the same output with Volt?
No comments:
Post a Comment