Set value of \Phalcon\Tag::tagHtml

So, using \Phalcon\Tag::tagHtml('li', ['class'=>'breadcrumb-item'], true, true) I get an empty html li tag. How do I set its content?



31.2k

Hi,

maybe (where third parameter, selfClose, of tagHtml is set to false):

<?php echo \Phalcon\Tag::tagHtml('li', ['class'=>'breadcrumb-item'], false, true, true); ?>

my content here

<?php echo Phalcon\Tag::tagHtmlClose("li", true); ?>



465

I was building an array of tags to build the output later so your solution doesn't actually help me