Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
互联网应用开发
wiki-php
Wiki
code standard
code standard
· Changes
Page history
wangqs created page: code standard
authored
Jun 13, 2016
by
互联网应用开发
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
code-standard.md
code-standard.md
+11
-0
No files found.
code-standard.md
View page @
b2f11efb
...
@@ -43,3 +43,14 @@ function im_func($a, $b){
...
@@ -43,3 +43,14 @@ function im_func($a, $b){
}
}
```
```
#### 强制规定
1.
代码风格强制使用上述规则
2.
函数必须写注释
3.
不得循环查询数据库
4.
全局变量使用需通报所有人
5.
不得在controller里查询数据库
6.
不得在view层查询数据库
7.
待补充