Yii Framework Forum: CFormButtonElement with custom type - Yii Framework Forum

Jump to content

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

CFormButtonElement with custom type Rate Topic: -----

#1 User is offline   Fragoulas 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 11-July 11

Posted 17 May 2012 - 05:49 AM

When rendering a CFormButtonElement using a custom type (hence custom widget) it forces the widget to have a name attribute.

File: web/form/CFormButtonElement.php
Line: 122
0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,358
  • Joined: 12-October 09
  • Location:Croatia

Posted 17 May 2012 - 05:51 AM

The description is clear - http://www.yiiframew...rmButtonElement

it say:

Quote

...
Note, the widget must have a property called "name".

Find more about me.... btw. Do you know your WAN IP?
0

#3 User is offline   Fragoulas 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 11-July 11

Posted 17 May 2012 - 05:54 AM

View Postmdomba, on 17 May 2012 - 05:51 AM, said:

The description is clear - http://www.yiiframew...rmButtonElement

it say:


ARG!!! not cool, really. what to do if i am passing a 3rd party widget? (rhetorical question)
Extend the CFormButtonElement class just to override this one line?
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