Quentinb
(Quentin)
1
I must be doing something stupid, but I cannot get the value of selected radio button in my controller class.
This is in my view:
<?=$form->field($model, 'dellogo')->radioList(['yes' => 'Yes', 'no' => 'No'], ['itemOptions' => ['class' =>'radio-inline']])?>
This is in my controller:
if($model->dellogo == "yes")
{
......
}
Thanks
pkjoshi
(Info)
2
Try
var_dump($model->dellogo);exit;
and see what you are getting?
Quentinb
(Quentin)
4
I defined "dellogo" in my model as:
public $dellogo;
Quentinb
(Quentin)
5
NEVER MIND.
I was reading the wrong model 
Admin please delete this topic if you wish…