title: Yii: Can not list data in Grid View
body: <p>I cant list data in grid using yii framework.My controller is Sitecontroller.php,My view is list_jobseeker.php .I got the error "Fatal error: Call to a member function getData() on a non-object ".Anybody help me?</p>
  
  <p>My controller code</p>
  
  <pre><code>  public function actionlist_jobseeker()
    {
    $session_id=Yii::app()-&gt;session['user_id']; 
    if ($session_id == "")
      {
          $this-&gt;redirect( array('/employee/site/login'));
      }
    $user_id  =$session_id;
    $models = Yii::app()-&gt;db-&gt;createCommand()
       -&gt;select('*')
       -&gt;from('job_seeker_profile s')
       -&gt;join('job_profile j','s.user_id = j.user_id')
       -&gt;order('s.id')
       -&gt;queryAll();
       $this-&gt;render('list_jobseeker',array('models' =&gt;$models));
  </code></pre>
  
  <p>}</p>
  
  <p>View-  list_jobseeker.php</p>
  
  <pre><code>&lt;h1&gt;View Jobseeker&lt;/h1&gt;
  
  &lt;div class="flash-success"&gt;
  
  &lt;/div&gt;
  
   &lt;div class="form"&gt;
   &lt;?php
    $this-&gt;widget('zii.widgets.grid.CGridView', array(
      'id'=&gt;'rates-phase-grid',
     'htmlOptions' =&gt; array('class' =&gt; 'table table-striped table-bordered table-hover'),
      'dataProvider'=&gt;new CArrayDataProvider($models),
      'columns' =&gt; array(
          array(
              'name' =&gt; 'Name',
              'type' =&gt; 'raw',
              'value' =&gt; 'CHtml::encode($data[*]-&gt;name)',
              'htmlOptions' =&gt; array('style'=&gt;'width:90px;','class'=&gt;'zzz'),
  
       ),
          array(
              'name' =&gt; 'Email',
              'type' =&gt; 'raw',
              'value' =&gt; 'CHtml::encode($data[*]-&gt;email)',
              'htmlOptions' =&gt; array('style'=&gt;'width:250px;','class'=&gt;'zzz')
  
          ),
          array(
              'name' =&gt; 'Password',
              'type' =&gt; 'raw',
              'value' =&gt; 'CHtml::encode($data[*]-&gt;password)',
              'htmlOptions' =&gt; array('style'=&gt;'width:90px;','class'=&gt;'zzz')
          ),
          array(
              'name' =&gt; 'Contact No',
              'type' =&gt; 'raw',
              'value' =&gt; 'CHtml::encode($data[*]-&gt;contact_no)',
              'htmlOptions' =&gt; array('style'=&gt;'width:40px;','class'=&gt;'zzz')
  
          ),
           array(
              'name' =&gt; 'Gender',
              'type' =&gt; 'raw',
              'value' =&gt; 'CHtml::encode($data[*]-&gt;gender)',
              'htmlOptions' =&gt; array('style'=&gt;'width:40px;','class'=&gt;'zzz')
  
          ),
  
  
          array(
              'class' =&gt;'CButtonColumn',
              'deleteConfirmation'=&gt;'Are you sure you want to delte this item?',
              'template'=&gt;'{update}{delete}',
  
              'buttons' =&gt;array('update'=&gt;array(
  
               'label'=&gt;'edit',
        'url'=&gt;'Yii::app()-&gt;controller-&gt;createUrl("UpdateJob",array("id"=&gt;$data["id"]))',
  
                  ),
               'delete'=&gt;array('label'=&gt;'delete',
       'url'=&gt;'Yii::app()-&gt;controller-&gt;createUrl("DeleteJob",array("id"=&gt;$data["id"]))'),
  
  
                  )
              )
            ),
     ));
    ?&gt;
  </code></pre>
  
  <p>
  </p>