Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
926bb18a
Commit
926bb18a
authored
Mar 21, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed incorrect example for meta description and registerMetaTag
parent
70a5375b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
view.md
docs/guide/view.md
+2
-2
No files found.
docs/guide/view.md
View file @
926bb18a
...
...
@@ -162,8 +162,8 @@ The first argument is an map of `<meta>` tag option names and values. The code a
Sometimes there's a need to have only a single tag of a type. In this case you need to specify the second argument:
```
html
$this->registerMetaTag(
[
'
description
' => 'This is my cool website made with Yii!'
]
, 'meta-description');
$this->registerMetaTag(
[
'
description
' => 'This website is about funny raccoons.'
]
, 'meta-description');
$this->registerMetaTag(
[
'
name' => 'description', 'content
' => 'This is my cool website made with Yii!'
]
, 'meta-description');
$this->registerMetaTag(
[
'
name' => 'description', 'content
' => 'This website is about funny raccoons.'
]
, 'meta-description');
```
If there are multiple calls with the same value of the second argument (`meta-description` in this case), the latter will
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment