Render View Via Bootstrap Modal


I need to use bootstrap modal to load form , how I can call bootstrap modal with parameters via link ?

view :

<?php echo CHtml::link(Yii::t('app','addaction'),'#myModal',array('class'=>'btn btn-primary','data-toggle'=>'modal')) ;?>


<!-- Boostrap modal dialog -->

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

	<div class="modal-dialog">

    	<div class="modal-content">

        	<div class="modal-header">

            	<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>

            	<h4 class="modal-title"><?php echo Yii::t('app','AddAction'); ?></h4>


        	<div class="modal-body">

            	<?php echo $this->renderPartial('_form', array('model'=>$model,'productId'=>$productId));  // I need  $productId to be dynamic related to link 



    	</div><!-- /.modal-content -->

	</div><!-- /.modal-dialog -->

</div><!-- /.modal -->

Controller :

public function actionCreate()


    	$model=new Actions;


    	// Uncomment the following line if AJAX validation is needed









            	echo CJSON::encode(array('status' => 'success','message'=>$message));



            	$error = CActiveForm::validate($model);


                	echo $error;





        	echo $this->renderPartial('_form',array('model'=>$model,'productId'=>$productId),false,true);//This will bring out the view along with its script.

    	else $this->render('create',array(




So with above code form is work with validation also , the problem if I need to add dynamic parameters to link how to ?

For example : use it in CRGidview via update function then the $product_id will change for every row related to values in database .

Thanks in advance

I guess the problem can fix with Ajaxlink any one can agree with me ?