• 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?

Xon

Well-known member
#2
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.