Yii Framework Forum: Update 2 Rows - Yii Framework Forum

Jump to content

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

Update 2 Rows Rate Topic: -----

#1 User is offline   roadrunner 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 74
  • Joined: 21-June 12

Posted 17 January 2013 - 02:13 AM

Hi! How to update 2 rows using CHtml::link?
lets just say in the link have an activate/deactivate and if the current row have "activated" value it will become null and the new row that you want to update will have the new value "activate" same goes to deactivate.
0

#2 User is offline   BCR 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 36
  • Joined: 12-December 12

Posted 17 January 2013 - 04:15 AM

CHtml::link just creates a <a> hyperlink, nothing else. If you would like to update stuff, use CHtml::ajaxLink instead!

B
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