1. 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

Discussion in 'Closed Suggestions' started by guiltar, Jan 26, 2012.

  1. guiltar

    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.
  2. guiltar

    guiltar Well-Known Member

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

Share This Page