Yii Framework Forum: Prevent specific fields from updating - Yii Framework Forum

Jump to content

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

Prevent specific fields from updating

#1 User is offline   willowl 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 17-December 10

Posted 07 October 2017 - 12:01 PM

Hello all.
Using PUT method, I need to avoid certain fields to be updated.
How I can achieve it.
BR.
0

#2 User is offline   Roberto Braga 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 184
  • Joined: 18-February 13
  • Location:Roma, Italy

Posted Yesterday, 03:22 AM

I think best way is using scenario
http://www.yiiframew....html#scenarios
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