1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 07:06:30 +02:00

Updated e107 Coding Standard (markdown)

CaMer0n
2012-11-27 20:08:04 -08:00
parent 1db5affc83
commit 294b6271c9

@@ -77,7 +77,8 @@ Always use e107's form handler for form elements in the front-end.
$frm->select($name,$value);
$frm->checkbox($name,$value,$checked);
$frm->selectbox($name,$array,$currentValue); // full SELECT tag with OPTIONs.
$frm->admin_button($name, $value, $action, $label);
$frm->admin_button($name, $value, $action, $label); // $label needed only when different to $value
$frm->admin_button('field_name', LAN_UPDATE, 'update');
### Globals
Avoid the use of global variables, especially as an alternative to parameter passing. (We'll always need some globals - but the less there are, the smaller the chance of a clash). In v2.0 use the e107::getxxx syntax to get pointers to 'global' functions and objects like $sql, $tp