php - set title page to h1 in yii2 -


set title page h1 in yii2?

in view :

$this->title = 'title' ; 

and source code :

<title>title</title> 

in view value assigned $this->title use in head , if useful in user view

<?php     $this->title = $model->id;  ?>  <head>     <meta charset="utf-8">     <meta name="viewport" content="width=device-width, initial-scale=1">     <title>my title  </title> <!-- seo -->     ... </head> <body>     <h1><?= $this->title ?> </h1> <!-- user view --> 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -