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
5c7e84cd
Commit
5c7e84cd
authored
Sep 16, 2014
by
Vasiliy Baukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update structure-views.md
We should note that the application is the global module itself, otherwise the paragraph can hardly be understood by someone unfamiliar with yii architecture.
parent
a187d47a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
structure-views.md
docs/guide/structure-views.md
+2
-2
No files found.
docs/guide/structure-views.md
View file @
5c7e84cd
...
@@ -415,7 +415,7 @@ In the first step, it determines the layout value and the context module:
...
@@ -415,7 +415,7 @@ In the first step, it determines the layout value and the context module:
-
If the
[
[yii\base\Controller::layout
]
] property of the controller is not null, use it as the layout value and
-
If the
[
[yii\base\Controller::layout
]
] property of the controller is not null, use it as the layout value and
the
[
[yii\base\Controller::module|module
]
] of the controller as the context module.
the
[
[yii\base\Controller::module|module
]
] of the controller as the context module.
-
If
[
[yii\base\Controller::layout|layout
]
] is null, search through all ancestor modules of the controller and
-
If
[
[yii\base\Controller::layout|layout
]
] is null, search through all ancestor modules
(including the application itself)
of the controller and
find the first module whose
[
[yii\base\Module::layout|layout
]
] property is not null. Use that module and
find the first module whose
[
[yii\base\Module::layout|layout
]
] property is not null. Use that module and
its
[
[yii\base\Module::layout|layout
]
] value as the context module and the chosen layout value.
its
[
[yii\base\Module::layout|layout
]
] value as the context module and the chosen layout value.
If such a module cannot be found, it means no layout will be applied.
If such a module cannot be found, it means no layout will be applied.
...
@@ -551,7 +551,7 @@ You may also frequently use the following minor yet useful features when you are
...
@@ -551,7 +551,7 @@ You may also frequently use the following minor yet useful features when you are
### Setting Page Titles <a name="setting-page-titles"></a>
### Setting Page Titles <a name="setting-page-titles"></a>
Every Web page should have a title. Normally the title tag is
generat
ed in a
[
layout
](
#layouts
)
. However, in practice
Every Web page should have a title. Normally the title tag is
being display
ed in a
[
layout
](
#layouts
)
. However, in practice
the title is often determined in content views rather than layouts. To solve this problem,
[
[yii\web\View
]
] provides
the title is often determined in content views rather than layouts. To solve this problem,
[
[yii\web\View
]
] provides
the
[
[yii\web\View::title|title
]
] property for you to pass the title information from content views to layouts.
the
[
[yii\web\View::title|title
]
] property for you to pass the title information from content views to layouts.
...
...
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