Yii Framework Forum: Event handlers - Yii Framework Forum

Jump to content

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

Event handlers Rate Topic: -----

#1 User is offline   SteelRat 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 22-July 12
  • Location:Ukraine

  Posted 22 July 2012 - 08:13 AM

Hi!

I have some task and want to implement it using Yii more natively.

So authorization on my site will work only using OAuth (Google, Facebook, Live ID...). I want to diplay authorization icons for each OAuth provider on the main page.
For these purposes I create Widget, that will render this icons horizontal list. This widget must dynamically display all providers' icons. Each provider has it's own component.

I simply can't understand how to implement this functionality.

I was previously using WordPress and there was great feature "Actions":
Using function
add_action( 'name', 'function_to_call' );
you can add some handler for event 'name'. Then to call all handlers -
do_action( 'name' );
.

But how to do my task more natively in Yii?
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