Checkboxes in Simple Module (Model) | Fuel Beta
Hey, my checkboxes don't render properly in the new version. (it's not selected and not saving)
I want to transform a input[type="text"] to a checkbox by setting $fields['comments_allowed']['type'] = 'checkbox';
in my form_fields method.
What am I doing wrong or what do I have to do to achieve this?
Comments
public $boolean_fields = array('comments_allowed');
The issue has to do with boolean fields actually being tinyint fields. Specifying the above makes sure they are treated as boolean fields instead of an integer field.
I'm going to finish the first backend version of the gallery module tomorrow and then I'll look for some possible javascript sliders or other ui-elements.
Is it possible to pass the content of a module view to a layout used by fuel pages?
The goal is to keep the whole system as modular as possible and to have only one "template/design" file.
$vars['body'] = $this->load->module_view('my_module', 'my_view', $vars, TRUE); $this->fuel->pages->render('my_uri', $vars);
Does that make sense?