I need to access chtml values in my function and am unable to do so. I tried using $this->name of the dropdown… but it doesn’t seem to help…
Please help
I need to access chtml values in my function and am unable to do so. I tried using $this->name of the dropdown… but it doesn’t seem to help…
Please help
Can you post your code?
<div class="row">
<?php echo CHtml::activeLabelEx($model,'month'); ?>
<?php echo CHtml::activeTextField($model,‘month’,array(“id”=>“month”)); ?>
<?php echo CHtml::image(Yii::app()->request->baseUrl."/images/calendar.png","calendar",
array("id"=>"c_button","class"=>"pointer")); ?>
&nbsp;(calendar appears when image is clicked)
<?php $this->widget('application.extensions.calendar.SCalendar',
array(
'inputField'=>'month',
'button'=>'c_button',
'ifFormat'=>'%Y-%m-%d',
));
?>
</div>
<div class="row">
<?php echo CHtml::activeLabelEx($model,'months'); ?>
<?php echo CHtml::activeTextField($model,‘months’,array(“id”=>“months”)); ?>
<?php echo CHtml::image(Yii::app()->request->baseUrl."/images/calendar.png","calendar",
array("id"=>"c_button4","class"=>"pointer")); ?>
&nbsp;(calendar appears when image is clicked)
<?php $this->widget('application.extensions.calendar.SCalendar',
array(
'inputField'=>'months',
'button'=>'c_button4',
'ifFormat'=>'%Y-%m-%d',
));
?>
</div>
Well now am trying it in this way…this is my code for the calender’s to chose the dates…but when i try to access these in the model using $this->month and $this->monthd it doesnt give any value?
can you hhelp me on this please?