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

Difference between Callback and Template_Helper?

Discussion in 'XenForo Development Discussions' started by Marcus, Aug 21, 2015.

  1. Marcus

    Marcus Well-Known Member

  2. Xon

    Xon Well-Known Member

    Callbacks basically can't be replaced/overrriden wholesale while template helpers can be.

    As such, when you disable a template helper's addon the template helper itself is disabled. The callback just ignores addon enable/disable state, and loads the class and executes the method.

    Callbacks have some flexibility which allows them todo more than template helpers, but at a complexity cost.
    Marcus likes this.

Share This Page