Yii Framework Forum: CWidget actions and Controller actions - Yii Framework Forum

Jump to content

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

CWidget actions and Controller actions how to make them working together Rate Topic: -----

#1 User is offline   aztech 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 206
  • Joined: 12-December 08
  • Location:Poland

Posted 02 March 2010 - 05:32 PM

Lets assume that we have:
- class CMyWidget, which extends from CWidget. It has method called myWidgetAction;
- controller CMyController which defines action myControllerAcion;

What should return property actions of CMyWidget and what should I put into actions definition in controller to use defined myWidgetAction as myControllerAction?
I'm not complete idiot... some parts are missing!
0

#2 User is offline   aztech 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 206
  • Joined: 12-December 08
  • Location:Poland

Posted 14 March 2010 - 10:05 AM

Up? Anyone can help me?
I'm not complete idiot... some parts are missing!
0

#3 User is offline   samdark 

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

Posted 14 March 2010 - 12:27 PM

You should use CAction, not a widget. It's described here: http://www.yiiframew...sics.controller
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
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