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

Phalcon\Tag addition

I wrote this for my own use, but i think that the meta keyword and description should be handled by Phalcon\Tag to. There is what i use atm: https://gist.github.com/johnnyajax/9594aab026a9a2d62451#file-gistfile1-php

P.S. google love this info.



98.9k
edited Mar '14

I think there are quite of posibilities for metas to implement each one as a method in Phalcon\Tag. In 1.1.0 you can use the generic HTML generator:

<?= Tag::tagHtml('meta', ['name' => 'description', 'content' => 'mycontent']) ?>