Yii Framework Forum: How To Post Dynamic Values Using Yii Editable - Yii Framework Forum

Jump to content

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

How To Post Dynamic Values Using Yii Editable Rate Topic: -----

#1 User is offline   rohitashv 

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

Posted 03 January 2013 - 03:55 AM

Hey guys,
I am trying to use yii editable, I am using following code:

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

In this I am passing time starting from 12:00 AM to 11:59 PM using for loop in the gap of 15 mins, in the begining I am passing 12:00 AM, but when next time when the value of $time= 12:15PM, then at url it is sending only 12:00AM, why this is so ?? please help ..
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