I got this:
$fields['values'] = array(
'label' => 'Valores',
'type' => 'array',
'class' => 'add_edit',
'options' => $this->Product_feature_values_model->options_list(),
'value' => array_keys($this->Product_features_to_values_model->find_all_array_assoc('product_feature_value_id', array('product_feature_id' => $values['id']))),
'mode' => 'multi'
);
Everything is fine, except that when I hit the 'Add' button (next to the combo), the popup appears empty.
Any toughts?
Comments
'type' => 'add_edit product_features',
'class' => 'add_edit Product_feature_values_model',
but it doesnt work. Also tried removing the "_model" but neither.
Also, I dont want the model visible on the sidebar.
You can manually set what appears in the left menu by configuring the fuel nav property $config['nav']['modules'] in fuel/application/config/MY_fuel.php (you'll need to add it). The default value is 'AUTO' which will automatically generate the list based on what is in your MY_fuel_modules file.
Is it possible to omit just one module using $config['nav']['modules']?
http://www.getfuelcms.com/user_guide/modules/simple