Yii Framework Forum: Kartik DetailView - include attribute in POST data but protect from edit - Yii Framework Forum

Jump to content

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

Kartik DetailView - include attribute in POST data but protect from edit Rate Topic: -----

#1 User is offline   U4EA 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 300
  • Joined: 04-November 12

Posted 22 July 2016 - 04:55 AM

Just wondering if there is a way I can include an attribute so it is a named as an attribute in the HTML model array (and is therefore included in the post data) but not allow it to be edited? There is of the option of creating a value of raw HTML but I was wondering if there is a cleaner way to do it? Thanks.
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