diff options
-rw-r--r-- | MainView.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MainView.php b/MainView.php index edfc6e4..b5db3ca 100644 --- a/MainView.php +++ b/MainView.php @@ -48,6 +48,13 @@ class MainView } + function checkbox($name, $value, $checked = FALSE, $params = NULL) + { + $checked = ($checked) ? ' checked="checked"' : ''; + $html = '<input type="checkbox" name="'.$name.'" value="'.$value.'"'.$checked.'/>'; + return $html; + } + // $this->mainView->form('/some/save')-> function action($action) { |