Yii Framework Forum: Actions by Behavioring - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Actions by Behavioring Is it possible to add actions to a controller via Behaviors? Rate Topic: -----

#21 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 2,993
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 04 January 2013 - 06:19 AM

Coming back to this rather old topic: I still think, this would be a useful feature, as it would allow you to compose your controllers through behaviors. I don't like the above solutions:

- Action classes: Not always nice as some problems are much easier to handle in single classes
- Base proxy controller: Enforces you to extend from that controller. Since we cant multi-inherit in PHP this is quite limiting if you need some code from your own base controller.

Here's a ticket: https://github.com/y...yii/issues/1922
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • 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