Im new to yii. Can anyone find the solution to my problem.where is my mistake. It does not return value. In statuslevel action i have to submit the value to status in another model.
index.php:
array(
'name' => 'status',
'type' => 'raw',
'value' => "CHtml::dropDownList('status', '', array('1' => 'Open' , '2' => 'Fixed' , '3' => 'Closed' , '4' => 'Re-Open' , '5' => 'Clarification'),
'ajax' => array(
'type' => 'GET',
'data' => array('status' => 'js:this.value'),
'dataType' => 'text',
'url' => Yii::app()->createUrl('projectBug/statuslevel'),
'success' => 'function(data){alert(data);}',
),
'filter' => false,
),
只是将 get 方法更改为方法'type' => 'POST'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.