Signature of AjaxHelper::submit() has changed

The signature of AjaxHelper::submit() has changed, and is not compatible with code from RC4 (or before), i.e. it will break existing code. Here is the old function signature:

function submit ($name, $value, $options = array())

It has been replaced by the following function signature:

function submit ($title = 'Submit', $options = array())

You know the drill. Make sure you update your code if you use this function ;-)

3 Comments

  1. Nate
    Posted February 17, 2006 at 3:15 pm | Permalink

    Maybe you noticed already, but this was done for consistency with HtmlHelper::submit( ).

  2. ozly
    Posted February 18, 2006 at 8:18 am | Permalink

    thanks for posting this, it did strikes me while doing Graham’s ajax tutorial.

  3. ozly
    Posted February 18, 2006 at 8:19 am | Permalink

    thanks for posting this, it did strikes me today while testing Graham’s ajax tutorial.


%d bloggers like this: