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
199fe352
Commit
199fe352
authored
Nov 30, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more explaination of layout to views guide
parent
c3e4d636
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
view.md
docs/guide/view.md
+6
-1
No files found.
docs/guide/view.md
View file @
199fe352
...
...
@@ -277,7 +277,12 @@ use yii\helpers\Html;
In the markup above there's some code. First of all,
`$content`
is a variable that will contain result of views rendered
with controller's
`$this->render()`
method.
TBD
We are importing
`Html`
helper via standard PHP
`use`
statement. This helper is typically used for almost all views
where one need to escape outputted data.
Several special methods such as
`beginPage`
/
`endPage`
,
`head`
,
`beginBody`
/
`endBody`
are triggering page rendering events
that are used for registering scripts, links and process page in many other ways. Always include these in your layout in
order for rendering to work correctly.
### Partials
...
...
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