From 00eeae9fadc2c505f6c659bc68079584a5a63ff0 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 23 May 2011 10:32:09 +0300 Subject: checkbox --- MainView.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'MainView.php') 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 = ''; + return $html; + } + // $this->mainView->form('/some/save')-> function action($action) { -- cgit v1.2.3