It looks like you're new here. If you want to get involved, click one of these buttons!
$common_tabs = array(
'css_tab' => array('type'=>'fieldset','label'=>'CSS','class'=>'tab'),
'css' => array('type'=>'textarea','display_label'=>false,'class'=>'no_editor','style'=>'width: 157%;'),
'js_tab' => array('type'=>'fieldset','label'=>'JS','class'=>'tab'),
'js' => array('type'=>'textarea','display_label'=>false,'class'=>'no_editor','style'=>'width: 157%;')
);
$common_tabs
to all of my layouts like following $_layout_1 = new Fuel_layout('_layout_1');
$_layout_1->set_label('Layout 1');
$_layout_1->add_fields($common_tabs);
$config['layouts']['_layout_1'] = $_layout_1;
$_layout_2 = new Fuel_layout('_layout_2');
$_layout_2->set_label('Layout 2');
$_layout_2->add_fields($common_tabs);
$config['layouts']['_layout_2'] = $_layout_2;
Comments
$fields['my_field']['js'] = array('my_js'); $fields['my_field']['css'] = array('my_css');
If I'am using object, how can I do this ?