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
d3bc2523
Commit
d3bc2523
authored
Dec 06, 2014
by
nirvana-msu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a few typos in Html helper guide
parent
8809d422
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
helper-html.md
docs/guide/helper-html.md
+3
-3
No files found.
docs/guide/helper-html.md
View file @
d3bc2523
...
...
@@ -225,7 +225,7 @@ that accepts data directly:
<?=
Html
::
activeLabel
(
$user
,
'username'
,
[
'class'
=>
'label username'
])
```
In order to display form errors from a model or models as a summar
t
you could use:
In order to display form errors from a model or models as a summar
y
you could use:
```
php
<?=
Html
::
errorSummary
(
$posts
,
[
'class'
=>
'errors'
])
?>
...
...
@@ -240,7 +240,7 @@ To display individual error:
### Names and values
There are methods to get names, ids and values for input fields based on the model. These are mai
l
ly used internally
There are methods to get names, ids and values for input fields based on the model. These are mai
n
ly used internally
but could be handy sometimes:
```
php
...
...
@@ -257,7 +257,7 @@ echo Html::getAttributeValue($post, 'title');
echo
Html
::
getAttributeValue
(
$post
,
'[0]authors[0]'
);
```
In the above first argument is the model while the second one is attribute expression. In its simplest for it's
In the above first argument is the model while the second one is attribute expression. In its simplest for
m
it's
attribute name but it could be an attribute name prefixed and/or suffixed with array indexes which are mainly used
for tabular input:
...
...
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