Hey there,
I'm trying to create a extended search form to search in one of my modules. But as soon as i create a CheckboxSetField i get the error : Fatal error: Call to a member function hasMethod() on a non-object in /var/www/empex4/sapphire/forms/CheckboxSetField.php on line 21
I really can't figure out why this happends. I've shrinked the form to virtually nothing and still i get the same error. Here's my code :
class VacatureUitgebreidZoeken extends Page {
static $db = array(
);
static $has_one = array(
);
}
class VacatureUitgebreidZoeken_Controller extends Page_Controller {
function VacatureSearchForm() {
// Create fields
$test = new CheckboxSetField('Werkstatus','Werkstatus',array('Fulltime' => 'Fulltime',
'Parttime' => 'Parttime',
'Oproepbasis' => 'Oproepbasis'));
$fields = new FieldSet(
$test
);
$submitAction = new FormAction('uitgebreidZoekenResults', 'Resultaten weergeven');
$actions = new FieldSet(
$submitAction
);
$form = new Form($this, 'VacatureSearchForm', $fields, $actions
);
return $form;
}
}
anyone knows what to do?
Thanks!