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
eb8a11a1
Commit
eb8a11a1
authored
Jan 14, 2014
by
marsuboss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Array short
parent
ec0e348a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
view-code-style.md
docs/internals/view-code-style.md
+6
-6
No files found.
docs/internals/view-code-style.md
View file @
eb8a11a1
...
...
@@ -33,18 +33,18 @@ $this->title = 'Posts';
<?php
endforeach
;
?>
<!-- Widget declaration may or may not be exploded into multiple LOCs. -->
<?php
$form
=
ActiveForm
::
begin
(
array
(
'options'
=>
array
(
'id'
=>
'contact-message-form'
)
,
'fieldConfig'
=>
array
(
'inputOptions'
=>
array
(
'class'
=>
'common-input'
))
,
)
);
?>
<?php
$form
=
ActiveForm
::
begin
(
[
'options'
=>
[
'id'
=>
'contact-message-form'
]
,
'fieldConfig'
=>
[
'inputOptions'
=>
[
'class'
=>
'common-input'
]]
,
]
);
?>
<!-- Note indentation level here. -->
<?=
$form
->
field
(
$contactMessage
,
'name'
)
->
textInput
()
?>
<?=
$form
->
field
(
$contactMessage
,
'email'
)
->
textInput
()
?>
<?=
$form
->
field
(
$contactMessage
,
'subject'
)
->
textInput
()
?>
<?=
$form
->
field
(
$contactMessage
,
'body'
)
->
textArea
(
array
(
'rows'
=>
6
)
)
?>
<?=
$form
->
field
(
$contactMessage
,
'body'
)
->
textArea
(
[
'rows'
=>
6
]
)
?>
<div
class=
"form-actions"
>
<?=
Html
::
submitButton
(
'Submit'
,
array
(
'class'
=>
'common-button'
)
)
?>
<?=
Html
::
submitButton
(
'Submit'
,
[
'class'
=>
'common-button'
]
)
?>
</div>
<!-- Ending widget call should have individual PHP tag. -->
<?php
ActiveForm
::
end
();
?>
...
...
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