public function testMain() { $frm = new SpoonForm('name', 'action'); $frm->addButton('submit', 'submit'); $frm->addCheckbox('agree', true); $frm->addDate('date', time(), 'd/m/Y'); $frm->addDropdown('author', array(1 => 'Davy', 'Tijs', 'Dave'), 1); $frm->addFile('pdf'); $frm->addImage('image'); $frm->addHidden('cant_see_me', 'whoop-tie-doo'); $frm->addMultiCheckbox('hobbies', array(array('label' => 'Swimming', 'value' => 'swimming'))); $frm->addPassword('top_sekret', 'stars-and-stripes'); $frm->addRadiobutton('gender', array(array('label' => 'Male', 'value' => 'male'))); $frm->addTextarea('message', 'big piece of text'); $frm->addText('email', '*****@*****.**'); $frm->addText('now', date('H:i')); }