title: yii two models in _form while using xupload, error undefined variable
body: <pre><code> Controller : 
   Yii::import("xupload.models.XUploadForm"); //enciora
              $photos = new XUploadForm;
   $this-&gt;render('create', array(                    
                  'model' =&gt; $model,
                  'photos' =&gt; $photos
              ));
  
   create: &lt;?php echo 
   $this-&gt;renderPartial('_form', 
      array(
          'model'=&gt;$model,
          'photos' =&gt; $photos
          )); ?&gt;
  
  _form:  &lt;?php
          $this-&gt;widget( 'xupload.XUpload', array(
              'url' =&gt; Yii::app()-&gt;createUrl( "/encionmentDetail/upload"),
              //our XUploadForm
              'model' =&gt; $photos,
              //We set this for the widget to be able to target our own form
              'htmlOptions' =&gt; array('id'=&gt;'encionment-detail-form'),
              'attribute' =&gt; 'file',
              'multiple' =&gt; true,
              //Note that we are using a custom view for our widget
              //Thats becase the default widget includes the 'form' 
              //which we don't want here
              'formView' =&gt; 'application.views.encionmentDetail._form',
              )    
          );
          ?&gt;
  </code></pre>
  
  <p>ERROR: Undefined variable: model or Undefined variable: photos . this are the errors coming<br>
  while creating. if one model is passed then it shows properly. Please help</p>
  
  <p>Well, the problem is with this line 'formView' => 'application.views.encionmentDetail._form'</p>
  
  <p>. if i remove this line then no error. what should i do ?</p>