Answer the question
In order to leave comments, you need to log in
Yii pass value by reference using POST?
yii has an unknown CHtml::ajaxLink()
but it seems to work with the current page
and I would like to post data to another page
echo CHtml::ajaxLink(
$text = 'Click me',
$url = 'https://toster.ru/question/new',
$ajaxOptions=array (
'type'=>'POST',
'dataType'=>'json',
'success'=>'function(html){ jQuery("#des1roer=true").html(html); }'
),
$htmlOptions=array ()
);
if (isset($_POST['des1roer'] ))
echo $_POST['des1roer'] ;
Answer the question
In order to leave comments, you need to log in
options are added to ajaxOptions:'data' => array( 'des1roer' => '1')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question