• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lack of interest Add CodeEvent in ControllerHelper


Well-known member
I would suggest to add a CodeEvent in ControllerHelper.
It would be very useful for addons extending Controller methods without rewriting them.
The most common problem in such extending is to change some params inside a controller without extra queries and rewriting whole conroller.

For example, we want to change number of messages shown in the current page in some special forum.
If we do it before parent::actionIndex() we don't know the param 'forum' and have to do extra query to know it. And we can't do it after parent::actionIndex() because the posts are already fetched.


Well-known member
Finally, found a way. One can extend the controller metod getHelper and return extended helper ForumThreadPost instead of native.