Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Parameter Pass As Post Use Link

$
0
0
How to multiple parameter pass as post by using CHtml::link and get parameter value from controller action ?

Like as

$url = array('Exams/displaySubject');
echo CHtml::link(
$val['exam_groups_name'], $url, array(
'submit' => $url,
'params' => array('exam_groups_id' => $val['exam_groups_id'], 'batch_id' => $val['batch_id']),
)
);

But i can't understand is it working ? Because I can not get parameter value in controller action. if it is right code then how to get parameter value from controller action ? So help any one plz. solve the problem ?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>