title: get_class() expects parameter 1 to be object, array given in Yii
body: <p>i'm just research about Yii for 2 weeks but i have a project  . the mission is use Yii Cactiveform to create a form. But I get this error : get_class() expects parameter 1 to be object, array given. This is my Controller:</p>
  
  <pre><code> public function actionPersonal()
  {
      // Layout
      $this-&gt;layout = '../layouts/news_style';
      // Title
      $this-&gt;pageTitle = Yii::app()-&gt;params['news_title'];
      // Description
      $this-&gt;pageDescription = Yii::app()-&gt;params['news_description'];
      // Breadcrumbs
      $this-&gt;breadcrumbs = array(
          'My Profile' =&gt; array(),
      );
      $layout = $this-&gt;_layout();
      return $this-&gt;render('my_profile', array(
          'user' =&gt; Yii::app()-&gt;user-&gt;getUser(),
          'postDoXe' =&gt; $layout['postDoXe'],
          'newPosts' =&gt; $layout['newPosts'],
      ));
  }
  </code></pre>
  
  <p>my_profile.php</p>
  
  <pre><code>&lt;div class="input-group"&gt;
                      &lt;?php echo $form-&gt;label(Yii::app()-&gt;user-&gt;getUser(),'username'); ?&gt;
                      &lt;?php echo $form-&gt;textField(Yii::app()-&gt;user-&gt;getUser(),'username'); ?&gt;    
  &lt;/div&gt;
  </code></pre>