-
Notifications
You must be signed in to change notification settings - Fork 1
Coding conventions
erikkinding edited this page Nov 24, 2010
·
12 revisions
Introduction When working in this project you are to follow some conventions. We want to keep a good consistency in the code, including variable names, indentation, etc. This will make it easier for newcomers to the project to realize HOW WE develop.
** PHP ** Sort of Java-like, to keep an object oriented feel. "CamelCase".
-
var aVariableName
-
public function aFunctionName()
-
class AClassName
JavaScript
to be written
** HTML **
The following is some general comments on best practices when designing website: http://www.hotdesign.com/seybold/
HTML Form name conventions:
$formName = $this->_fullname."{MessageName}";
<form name = "$formName" method = "post" >
<input type="hidden" name="_message" value="{MessageName}" />
<input type = "hidden" name="_target" value="$this->_fullname">
<input value ="signup" type = "button" onclick = 'JavaScript:sndmsg("$formName")'><br />
</form>
CSS
to be written