Browse Source

fixed unclear statements, added notes about one-line comments

tags/2.0.0-beta
Alexander Makarov 13 years ago
parent
commit
e38b86607d
  1. 9
      docs/code_style.md

9
docs/code_style.md

@ -54,10 +54,10 @@ $str3 = "Hello ${username}!";
### String concatenation ### String concatenation
When concatenating strings format it like the following: Add spaces around dot when concatenating strings:
~~~ ~~~
$name = 'Yii' . ' ' . 'Framework'; $name = 'Yii' . ' Framework';
~~~ ~~~
When string is long format is the following: When string is long format is the following:
@ -302,6 +302,11 @@ public function getEventHandlers($name)
} }
~~~ ~~~
#### Comments
- One-line comments should be started with `//` and not `#`.
- One-line comment should be on its own line.
Yii application naming conventions Yii application naming conventions
---------------------------------- ----------------------------------

Loading…
Cancel
Save