mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Updated e107 Coding Standard (markdown)
@@ -73,10 +73,10 @@ Relative paths (e_XXX) to access files from within the code
|
||||
### Forms
|
||||
Always use e107's form handler for form elements in the front-end.
|
||||
|
||||
$frm = e107::getForm();
|
||||
$frm->select($name,$value);
|
||||
$frm->checkbox($name,$value,$checked);
|
||||
$frm->selectbox($name,$array,$currentValue); // full SELECT tag with OPTIONs.
|
||||
$frm = e107::getForm();
|
||||
$frm->checkbox($name,$value,$checked);
|
||||
$frm->radio($name,$value,$checked);
|
||||
$frm->select($name,$array,$currentValue); // full SELECT tag with OPTIONs.
|
||||
$frm->admin_button($name, $value, $action, $label); // $label needed only when different to $value
|
||||
$frm->admin_button('field_name', LAN_UPDATE, 'update');
|
||||
|
||||
|
Reference in New Issue
Block a user