Yii implement multiple form validation on single view -


i want implement user profile update same implemented in facebook setting. same show/hide forms.

i have section of profile image upload do't want apply ajax forms. tried in 3 different ways.

  1. one single action , multiple form submit that.
    problem:- model validation -> have set blank model variable other model except submitted one
    , how show/hide forms

  2. multiple form , submit each 1 ajax.
    problem:- image upload

  3. tabs
    problem :- don't know how validation work.

can have better solution?

in opinion, better architectural solution 2, workaround image upload: upload images asynchronously, after upload, extract response imageid value , add hidden field in main form.


Comments