Yii Framework Forum: Unable To Post Dynamic Value In Yii Editable - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Unable To Post Dynamic Value In Yii Editable Rate Topic: -----

#1 User is offline   rohitashv 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 03-January 13

Posted 03 January 2013 - 06:54 AM

Hey,

we are using editable function of yii-booster. we are using this widget as follow:

$this->widget('bootstrap.widgets.TbEditableField', array(
                                                'type' => 'select',
                                                'model' => $data,
                                                'emptytext' => $Monday[$time],
                                                'attribute' => 'monday',
                                                'url' => $this->createUrl('staffhours/updatetime&time='.$time),
                                                'source' => array('Open', 'Close', 'Away'),
                                                'enabled' => true
                                        )); 
                                        
                                        ?> 


This widget is in a loop. Every time when this loop runs, the value of this $time variable changes, but into this widget, every time the same value is assigned to this $time,
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users