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
8814955a
Commit
8814955a
authored
Nov 26, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1330 from plusodinminus/patch-1
Docs typos [; before ?> in view]
parents
1d0bc00c
4bc205ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
form.md
docs/guide/form.md
+6
-6
view.md
docs/guide/view.md
+5
-5
No files found.
docs/guide/form.md
View file @
8814955a
...
...
@@ -93,14 +93,14 @@ This will create all the `<label>`, `<input>` and other tags according to the te
To add these tags yourself you can use the
`Html`
helper class. The following is equivalent to the code above:
```
php
<?=
Html
::
activeLabel
(
$model
,
'password'
)
;
?>
<?=
Html
::
activePasswordInput
(
$model
,
'password'
)
;
?>
<?=
Html
::
error
(
$model
,
'password'
)
;
?>
<?=
Html
::
activeLabel
(
$model
,
'password'
)
?>
<?=
Html
::
activePasswordInput
(
$model
,
'password'
)
?>
<?=
Html
::
error
(
$model
,
'password'
)
?>
or
<?=
Html
::
activeLabel
(
$model
,
'username'
,
[
'label'
=>
'name'
])
;
?>
<?=
Html
::
activeTextInput
(
$model
,
'username'
)
;
?>
<?=
Html
::
error
(
$model
,
'username'
)
;
?>
<?=
Html
::
activeLabel
(
$model
,
'username'
,
[
'label'
=>
'name'
])
?>
<?=
Html
::
activeTextInput
(
$model
,
'username'
)
?>
<?=
Html
::
error
(
$model
,
'username'
)
?>
<div
class=
"hint-block"
>
Please enter your name
</div>
```
docs/guide/view.md
View file @
8814955a
...
...
@@ -254,24 +254,24 @@ basic one without any widgets or extra markup.
<?php
use
yii\helpers\Html
;
?>
<?php
$this
->
beginPage
()
;
?>
<?php
$this
->
beginPage
()
?>
<!DOCTYPE html>
<html
lang=
"
<?=
Yii
::
$app
->
language
?>
"
>
<head>
<meta
charset=
"
<?=
Yii
::
$app
->
charset
?>
"
/>
<title>
<?=
Html
::
encode
(
$this
->
title
)
?>
</title>
<?php
$this
->
head
()
;
?>
<?php
$this
->
head
()
?>
</head>
<body>
<?php
$this
->
beginBody
()
;
?>
<?php
$this
->
beginBody
()
?>
<div
class=
"container"
>
<?=
$content
?>
</div>
<footer
class=
"footer"
>
© 2013 me :)
</footer>
<?php
$this
->
endBody
()
;
?>
<?php
$this
->
endBody
()
?>
</body>
</html>
<?php
$this
->
endPage
()
;
?>
<?php
$this
->
endPage
()
?>
```
In the markup above there's some code. First of all,
`$content`
is a variable that will contain result of views rendered
...
...
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