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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
33c16380
Commit
33c16380
authored
Nov 05, 2014
by
Nobuo Kihara
Committed by
Alexander Makarov
Nov 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] Fixes for structure-views.md
parent
44b0c907
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
structure-views.md
docs/guide/structure-views.md
+4
-4
No files found.
docs/guide/structure-views.md
View file @
33c16380
...
...
@@ -585,8 +585,8 @@ $this->registerMetaTag(['name' => 'keywords', 'content' => 'yii, framework, php'
```
The above code will register a "keywords" meta tag with the view component. The registered meta tag is
rendered after the layout finishes rendering.
By then, the following HTML code will be
inserted
at the place where you call
[
[yii\web\View::head()
]
] in the layout
and generate the following HTML code
:
rendered after the layout finishes rendering.
The following HTML code will be generated and
inserted
at the place where you call
[
[yii\web\View::head()
]
] in the layout:
```
php
<meta
name=
"keywords"
content=
"yii, framework, php"
>
...
...
@@ -606,7 +606,7 @@ $this->registerMetaTag(['name' => 'description', 'content' => 'This website is a
### Registering Link Tags <a name="registering-link-tags"></a>
Like
[
meta tags
](
#
add
ing-meta-tags
)
, link tags are useful in many cases, such as customizing favicon, pointing to
Like
[
meta tags
](
#
register
ing-meta-tags
)
, link tags are useful in many cases, such as customizing favicon, pointing to
RSS feed or delegating OpenID to another server. You can work with link tags in the similar way as meta tags
by using
[
[yii\web\View::registerLinkTag()
]
]. For example, in a content view, you can register a link tag like follows,
...
...
@@ -626,7 +626,7 @@ The code above will result in
```
Similar as
[
[yii\web\View::registerMetaTag()|registerMetaTags()
]
], you can specify a key when calling
[
[yii\web\View::registerLinkTag()|registerLinkTag()
]
] to avoid generat
ed
repeated link tags.
[
[yii\web\View::registerLinkTag()|registerLinkTag()
]
] to avoid generat
ing
repeated link tags.
## View Events <a name="view-events"></a>
...
...
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