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 HTML5 Tag Helper for video

Hi @all,

how can i code a tag helper for HTML5 video, that's my code. The Problem i have is the source:

Thx

    {{ tag_html("video", ["class": "bgvid", "autoplay" : "autoplay" , "loop" : "true"], false, true, true) }}
        {{ tag_html("source", ["vids/home.mp4","type": "video/mp4"]) }}

        {{ tag_html_close("source") }}
    {{ tag_html_close("video") }}
edited Aug '15

The only supported tag helpers atm are these.

Which means you will have to implement the functionality that you've described according to this.

Just wondering but what is the advantage of using self-made tag helpers instead of normal <?php ?> to render out the videos in this case?

Beats me :D

My best guess would be, so that you can easily switch between different HTML standards.

Just wondering but what is the advantage of using self-made tag helpers instead of normal <?php ?> to render out the videos in this case?