Yii Framework Forum: Yii.js - Yii Framework Forum

Jump to content

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

Yii.js override default implementations

#1 User is offline   ORey 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,703
  • Joined: 20-April 09
  • Location:Moscow, Russia

Posted 28 November 2013 - 05:34 PM

Documentation says,
You may override this by setting `yii.confirm`.


Any example how and where can I overide default implementation of functions?
God is real unless declared as integer
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,874
  • Joined: 17-January 09
  • Location:Russia

Posted 28 November 2013 - 06:02 PM

In any code you register yourself. JavaScript allows you to override anything after original code was initialized.
Yii 2.0 Development Cookbook, Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.

Support me so I work on Yii fulltime: https://www.patreon.com/samdark
0

#3 User is offline   ORey 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,703
  • Joined: 20-April 09
  • Location:Moscow, Russia

Posted 28 November 2013 - 07:07 PM

Nice. Works like a charm, thanks.
God is real unless declared as integer
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