How can i redirect to another controller action view using yii ajax call ? here is my ajax function
function test(id) { $.ajax({ type: "POST", data: "id="+id, url: "<?php echo Yii::app()->createUrl('controller/action'); ?>", success: function (msg){ } }); }
From my action i want to call a view in another window.
public function action
{
//doing some php code here to create $dataProvider
$this->render('view',array('dataProvider'=>$dataProvider),array('target'=>'_blank'));
}
is this possible ? please help