how to disable the submit button after submission

I am new yii framework .Plz help me for disable the submit button after submission in Yii framework. plz explain in view, controller, and model for this work

Plz read the guide.