Jump to content

Recommended Posts

Posted

Is it possible to add a method to the current $field via addHook()?

I try to add dynamic functions to fields, but each field will have a custom dynamic function.

Posted

Hi,

your way should work fine, but I tried to reduce the overhead.

The dynamic function should be added to the current form field object ("$myField", any Inputfield) instead of each instance of a class ("myClass::method").

If there isn't a way I'll do it like you suggested it above.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...