Add Form Component
Add Form Component

Create class Form in the application components namespace, overriding CForm to set the default active form widget class to "\application\components\ActiveForm".
Override the submitted() method to return true when any button had been clicked (when the first parameter is not a string), not just the button named "submit".

zanderbaldwin/yii-forms