micro bug

@ CHtml::ajaxSubmitButton()

I get :


Missing argument 2 for CHtml::ajaxSubmitButton()...

While i can see in the doc :


Parameters: 

string $label the button label

mixed $url the URL for the AJAX request. If empty, it is assumed to be the current URL. See {@link normalizeUrl} for more details.

If empty or not-exist is a better behavior

If you use ajaxSubmitButton() it’s supposed that you will want to give some ajax options and as that is the 3rd parameter how would you call this method without the second?

ajaxSubmitButton() expects you to use at least 2 parameters. However if you pass an empty array it will still work, because of how normalizeUrl() and route lookup works.

Also as mdomba said, it doesn’t make sense to make an AJAX call like that.