title: Undefined variable: model in yii
body: <p>I am trying a sample application in yii.. I faced a problem when I created new view page name with cart.php. In this page I am trying to access model variable.Where it is saying undefined variable model..</p>
  
  <p>View page</p>
  
  <pre><code>&lt;div class="form"&gt;
  &lt;?php $form=$this-&gt;beginWidget('CActiveForm', array(
      'id'=&gt;'login-form',
      'enableClientValidation'=&gt;true,
      'clientOptions'=&gt;array(
          'validateOnSubmit'=&gt;true,
  ),
  )); ?&gt;
  
  
      &lt;div&gt;
      &lt;?php echo $form-&gt;labelEx($model,'cartId:'); ?&gt;
      &lt;?php echo $form-&gt;textField($model,'cartId',array('size'=&gt;20,'maxlength'=&gt;120)); ?&gt;
      &lt;?php echo $form-&gt;error($model,'cartId'); ?&gt;
      &lt;/div&gt;
  
  
  
  &lt;?php $this-&gt;endWidget(); ?&gt;
  &lt;/div&gt;
  </code></pre>