We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Get title without <title> tags with tag

Hi everyone ,

as i described on title, i want to get title from tag helper without <title> tags.

I mean :

Now : <?php Tag::getTitle();?> => <title>Homepage</title>

I want: <?php Tag::getTitle();?> => Homepage

I can do it without any helper (i.e set view var from controller, or str_replace etc)



39.3k
Accepted
answer

I solve my problem :

If anyone wants to use :

<?php echo Tag::getTitle(false);?>

so easy :))