mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 23:26:41 +02:00
Updated e107 Coding Standard (markdown)
@@ -76,7 +76,8 @@ Always use e107's form handler for form elements in the front-end.
|
|||||||
$frm = e107::getForm();
|
$frm = e107::getForm();
|
||||||
$frm->select($name,$value);
|
$frm->select($name,$value);
|
||||||
$frm->checkbox($name,$value,$checked);
|
$frm->checkbox($name,$value,$checked);
|
||||||
$frm->selectbox($name,$array,$currentValue); // full SELECT tag with OPTIONs.
|
$frm->selectbox($name,$array,$currentValue); // full SELECT tag with OPTIONs.
|
||||||
|
$frm->admin_button($name, $value, $action, $label);
|
||||||
|
|
||||||
### Globals
|
### 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
|
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
|
||||||
@@ -343,4 +344,4 @@ Note and use the class-based structure introduced in v2.0 - with this it should
|
|||||||
Parameter standards (see eHelper::scParams() and eHelper::scDualParams() )
|
Parameter standards (see eHelper::scParams() and eHelper::scDualParams() )
|
||||||
|
|
||||||
## Recommended Code Editors
|
## Recommended Code Editors
|
||||||
We recommend [Aptana Studio](http://www.aptana.com/products/studio3) as an editor. We may release e107-specific code-assistance in future.
|
We recommend [Aptana Studio](http://www.aptana.com/products/studio3) as an editor. We may release e107-specific code-assistance in future.
|
Reference in New Issue
Block a user