晕,我想以相同的形式获取下拉值,即按月用于报表的值。
view_set = MyViewSet()
view_set.action_map = {"post": "create"}
view_set.dispatch(request)
并且是我的控制者;
here is my view ;
<?php $bulan1 = array (
'01' => 'Januari',
'02' => 'Februari',
'03' => 'Maret',
'04' => 'April',
'05' => 'Mei',
'06' => 'Juni',
'07' => 'Juli',
'08' => 'Agustus',
'09' => 'September',
'10' => 'Oktober',
'11' => 'November',
'12' => 'Desember',
);
?>
<div class="form-group">
<label for ="bulan" >Pilih Bulan Laporan <label/>
<?php $bulan = 'id="bulan" name ="bulan" class="form-control input-md" required';
echo form_dropdown('bulan',$bulan1,'',$bulan)?>
<div class="invalid-feedback">
<?php echo form_error('bulan') ?>
</div>
</div>
但是我无法获取下拉菜单的值,因此无法按月份对报告进行分组。任何人都请帮我谢谢你