Lack of interest Add CodeEvent in ControllerHelper

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

guiltar

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.
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
Finally, found a way. One can extend the controller metod getHelper and return extended helper ForumThreadPost instead of native.
 
Top Bottom