Yii Framework Forum: Want Event Feature - Yii Framework Forum

Jump to content

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

Want Event Feature Want Event listener in yii 2.0

#1 User is offline   Abhishek Shah 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 90
  • Joined: 20-July 12
  • Location:New Jersey,USA

Posted 26 March 2013 - 02:10 AM

In MVC ,we have to write everything in controller.
In zend2 ,there is a feature of event.
I think we should add this feature in yii2.0 release.
Or if it is already in yii,let me know,so I came to know,how to use it.
Feel free to ask for help,
Abhishek.
Freelancer.
Yii Basic Gii With Export Pdf Excel
0

#2 User is offline   Onman 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 175
  • Joined: 26-December 09
  • Location:The Netherlands

Posted 26 March 2013 - 03:46 AM

I'm not sure if I understand your question correctly, but I think you might be looking for the (existing) CAction class. Within that class you can implement everything you need for 1 specific action. This class can then be registered on a controller with any action id you want.

For more information see:
CAction

CController.actions()
0

#3 User is offline   Abhishek Shah 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 90
  • Joined: 20-July 12
  • Location:New Jersey,USA

Posted 26 March 2013 - 03:53 AM

I am suggesting a move-model,operation,view ,event framework,like zend2 ,for yii,I am trying to study,what you have suggested,can be helpful to that or not.
Feel free to ask for help,
Abhishek.
Freelancer.
Yii Basic Gii With Export Pdf Excel
0

#4 User is offline   samdark 

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

Posted 26 March 2013 - 05:45 AM

https://github.com/y.../yii2/issues/28 ?
Yii 1.1 Application Development Cookbook

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

#5 User is offline   Abhishek Shah 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 90
  • Joined: 20-July 12
  • Location:New Jersey,USA

Posted 28 March 2013 - 12:22 AM

View Postsamdark, on 26 March 2013 - 05:45 AM, said:


Thanx for your link.Got good feedback.
Feel free to ask for help,
Abhishek.
Freelancer.
Yii Basic Gii With Export Pdf Excel
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