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

Tbbutton Selection

$
0
0
I am not good on HTML, yet, but I am guessing if I were this would be easy.

How do I determine in the controller that the button has been selected? I have tried 'id' and 'name', but nothing shows up in $_POST.

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'entrepreneur-form',
	'enableAjaxValidation'=>false,
)); ?>

<?php $this->widget('bootstrap.widgets.TbButton', array(
	'htmlOptions'=>array('name'=>'tech support'),
    'type' => 'info',
    'toggle' => 'checkbox', // 'checkbox' or 'radio
    'label' => 'technical/engineering support',
)); ?>

Viewing all articles
Browse latest Browse all 18717


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