1

我使用按钮 CONFIRM MODAL ( http://yii-booster.clevertech.biz/javascript.html#modals ) 我不知道如何将布尔变量“确认”传递给控制器

我托盘这样的东西

<?php 
if ($model->confirmado == 0) {
    $this->widget('bootstrap.widgets.TbButton', array(
        'label'=>'Confirmar Planilla',
        'type'=>'warning',
        'htmlOptions'=>array(
            'onclick'=>'js:bootbox.confirm("¿Esta seguro que desea confirma la planilla?",
                function(confirmed){ 
                    console.log("Confirmed: "+confirmed);
                    $.ajax({
                        url: CController::createUrl(array("adulto/confirmar")),
                        data: { "term": confirmed.term },
                        success: function(data) { response(data); }
                    });
                })',
        ),
    ));
}?>

但对我没有用....有什么建议吗?

谢谢!!

4

0 回答 0