this is my code... it work but uses ?id=1 instead of /id/1
CHtml::dropDownList('id', $select, $list, array('onchange'=>'this.form.submit()'))
Posted 28 October 2009 - 04:20 PM
CHtml::dropDownList('id', $select, $list, array('onchange'=>'this.form.submit()'))
Posted 28 October 2009 - 05:19 PM
CHtml::dropDownList('id', $select, $list, array('submit'=>'controller/action'));
Posted 29 October 2009 - 01:12 AM
<?= CHtml::form(); ?> <?= CHtml::dropDownList('id', $select, $list, array('submit' => '')) ?> <?= CHtml::endForm(); ?>
Posted 29 October 2009 - 09:13 AM
Posted 12 November 2010 - 11:45 PM
mvpind, on 26 January 2010 - 01:20 AM, said:
Posted 13 November 2010 - 12:16 AM
Posted 21 July 2011 - 05:11 AM
Posted 05 September 2011 - 12:39 AM
mdomba, on 21 July 2011 - 05:11 AM, said:
Posted 05 September 2011 - 02:03 AM
Rajith R, on 05 September 2011 - 12:39 AM, said:
Posted 05 September 2011 - 06:17 AM
jacmoe, on 05 September 2011 - 02:03 AM, said:
<?php echo CHtml::dropDownList('id','select_value',$data,array('prompt'=>'Move To Folder','submit'=>array('user/inbox')) );?>
<?php echo CHtml::dropDownList('id','select_value',$data,array('prompt'=>'Move To Folder','submit'=>'user/inbox') );?>
Posted 07 April 2012 - 12:52 AM
Posted 09 April 2012 - 09:55 AM
richa, on 07 April 2012 - 12:52 AM, said:
<?php echo CHtml::dropDownList('license_id', 'license', License::items(), array( 'empty'=>'Select License for this order', 'class'=>'span4', 'submit'=>array('order/addLicense', 'id'=>$model->orid), // id - will be sent as part of URL 'params'=>array('license_id'=>'js: $(this).val()'), // license_id will be send via POST and its value is selected value of dropDown 'csrf'=>true, // CSRF turned on in main config )); ?>