How to add Title and meta tags automatic in YII2

Dear all.

I want to add title and meta tags for seo automatic in head html. But i can declare it on my controller . How i can this. Please help me !!!

Welcome to forum.

Use registerMetaTag()

and $title$title-detail

From within view use it like that: $this->…

From within controller use it like that: $this->getView()->…

You can use the yii2-taggedview extension:

Best regards!