Yii Framework Forum: Multiple Model Form Render In One Page - Errorsummary - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Multiple Model Form Render In One Page - Errorsummary error summary best practices Rate Topic: -----

#1 User is offline   winson kong 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 25-October 10

Posted 07 December 2012 - 06:07 AM

Hi actually i have few model in
(<Userprofile> / <Useraccount>/ <Usercontact>)

I want to render this 3 model _form[in different div] to one page call user/update, but just <Userprofile> will display, other will hidden, when click the menu button(* example <Useraccount>)_form -> display but current <Userprofile> -> hidden

<div id ='Userprofile'><?php echo $this->renderPartial('_formupate', array('model'=>$userprofilemodel)); ?></div>
<div id ='usercontact'><?php echo $this->renderPartial('_formupdate', array('model'=>$usercontactmodel)); ?></div>
<div id ='useraccount'><?php echo $this->renderPartial('_formupdate', array('model'=>$useraccountmodel)); ?></div>

The problem is, i submit my 'usercontact', When i have error field, the systems will show the errorSummary - >Userprofile

May i know which way is better to do this? or i still have separate the form by different page?
0

#2 User is offline   hemc 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 84
  • Joined: 09-July 12
  • Location:New Delhi

Posted 06 May 2013 - 05:39 AM

Any solution to this ?
Please don't add a reply to say thanks, There is already a +1 button to do same.
0

#3 User is offline   capsuline 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 41
  • Joined: 18-June 09
  • Location:Netherland

Posted 17 July 2013 - 04:10 AM

@ winson kong

any update on this?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users