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":
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?