Skip to content

Commit

Permalink
Update structure-views.md
Browse files Browse the repository at this point in the history
registerMetaTag() usage clarification
  • Loading branch information
vambus committed Sep 17, 2014
1 parent 684365e commit bba9209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/structure-views.md
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ at the place where you call [[yii\web\View::head()]] in the layout and generate
Note that if you call [[yii\web\View::registerMetaTag()]] multiple times, it will register multiple meta tags,
regardless whether the meta tags are the same or not.

To make sure there is only a single instance of a meta tag type, you can specify a key when calling the method.
To make sure there is only a single instance of a meta tag type, you can specify a key as a second parameter when calling the method.
For example, the following code registers two "description" meta tags. However, only the second one will be rendered.

```html
Expand Down

0 comments on commit bba9209

Please sign in to comment.