Hello! I how controller ALertMaganerController generated by gii and index.php file in protected\views\alertManager folder. I have 2 buttons at this file
<?php echo CHtml::submitButton('On', array(
'ajax' => array(
'type'=>'POST',
'url'=>CController::createUrl('AlertOn'),
'update'=>'#updatedDropDownList',
)
)
); ?>
<?php echo CHtml::submitButton('Off', array(
'ajax' => array(
'type'=>'POST',
'url'=>CController::createUrl('AlertOff'),
'update'=>'#updatedDropDownList',
)
)
); ?>
where updatedDropDownList - CHtml::dropDownList
In both functions AlertOff and AlertOn of my controller I have return code
echo CHtml::tag('option',
array('value'=>'1'),
"SomeValue",
true
);
So I want to get this "SomeValue" from functions and put it somewhere at my contollers form near two buttons. Maybe I can use CHtml::label for this? How can I do this? Please help! No idea!!