title: Yii RenderPartial not working
body: <p>I am using renderParial() function to render views->subscriber->_form from views->layouts->main.php
  Problem i am getting is I am failed to insert data using this. Gii generated CRUD is working perfectly but when i render _form and want to insert data in database it's not working.
  Here is my code.
  main.php</p>
  
  <pre><code>&lt;div class="col-lg-6" style="text-align:right;"&gt;
                       &lt;span&gt;Subscribe Newsletter&lt;/span&gt;  
                        &lt;div style="float:right;margin-left:10px;"&gt;
                              &lt;?php
                                                     $model=new Subscription();
  
                          $this-&gt;renderPartial("/subscription/_form",array('model'=&gt;$model));?&gt;
  
                    &lt;/div&gt;
  </code></pre>
  
  <p>and _form.php</p>
  
  <pre><code>&lt;?php
  /* @var $this SubscriptionController */
  /* @var $model Subscription */
  /* @var $form CActiveForm */
  ?&gt;
  
  &lt;div class="form"&gt;
  
  &lt;?php $form=$this-&gt;beginWidget('CActiveForm', array(
      'id'=&gt;'subscription-form',
      // Please note: When you enable ajax validation, make sure the corresponding
      // controller action is handling ajax validation correctly.
      // There is a call to performAjaxValidation() commented in generated controller code.
      // See class documentation of CActiveForm for details on this.
      'enableAjaxValidation'=&gt;false,
  )); ?&gt;
  
  
  
      &lt;?php echo $form-&gt;errorSummary($model); ?&gt;
  
  
      &lt;div class="row"&gt;
  
          &lt;?php echo $form-&gt;textField($model,'email',array('size'=&gt;30,'maxlength'=&gt;30,'placeholder'=&gt;'Email Address')); ?&gt;
          &lt;?php echo $form-&gt;error($model,'email'); ?&gt;
          &lt;?php echo CHtml::submitButton($model-&gt;isNewRecord ? 'Subscribe' : 'Save',array('class'=&gt;'btn btn-xs btn-success subscribeBtn')); ?&gt;
  &lt;/div&gt;
  
  &lt;?php $this-&gt;endWidget(); ?&gt;
  
  &lt;/div&gt;
  </code></pre>