Yii Framework Forum: widget micro-controller - Yii Framework Forum

Jump to content

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

widget micro-controller how to use widget actions Rate Topic: -----

#1 User is offline   PauK 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 32
  • Joined: 21-November 09
  • Location:region krasnodarskiy

Posted 10 December 2009 - 12:10 AM

Hi ,everybody
There are quotations from manual
CWidget

Quote

CWidget
A widget is a self-contained component that may generate presentation based on model data. It can be viewed as a micro-controller that embeds into the controller-managed views.

And
CWidget::actions():

Quote

actions()
Returns a list of actions that are used by this widget. The structure of this method's return value is similar to that returned by CController::actions.

When a widget uses several actions, you can declare these actions using this method. The widget will then become an action provider, and the actions can be easily imported into a controller.

Note, when creating URLs referring to the actions listed in this method, make sure the action IDs are prefixed with actionPrefix.

Can you help me understand how to import actions into a controller
Have you any example about this widget feature
0

#2 User is offline   Roberto 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 33
  • Joined: 15-October 09

Posted 10 December 2009 - 05:43 AM

You can find information on this here: http://www.yiiframew...#actions-detail
0

#3 User is offline   PauK 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 32
  • Joined: 21-November 09
  • Location:region krasnodarskiy

Posted 10 December 2009 - 12:18 PM

View PostRoberto, on 10 December 2009 - 05:43 AM, said:

You can find information on this here: http://www.yiiframew...#actions-detail

Thank you
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