title: Array to String conversion error, Yii, Ajax validation
body: <p>Good Day. When i perform ajax validation of my CActiveForm, I have some PHP error:</p>
  
  <pre><code>Array to string conversion (/opt/lampp/htdocs/bo/framework/web/helpers/CHtml.php:2181)
  
  *0 /opt/lampp/htdocs/bo/framework/web/helpers/CHtml.php(2181): CWebApplication-&gt;handleError()
  1 /opt/lampp/htdocs/bo/framework/web/widgets/CActiveForm.php(917): modelName()
  2 /opt/lampp/htdocs/bo/protected/controllers/BoinfoController.php(635): validate()
  3 unknown(0): BoinfoController-&gt;actionCreate()
  4 /opt/lampp/htdocs/bo/framework/web/actions/CAction.php(108): ReflectionMethod-&gt;invokeArgs()
  5 /opt/lampp/htdocs/bo/framework/web/actions/CInlineAction.php(47): CInlineAction-&gt;runWithParamsInternal()
  6 /opt/lampp/htdocs/bo/framework/web/CController.php(308): CInlineAction-&gt;runWithParams()
  7 /opt/lampp/htdocs/bo/framework/web/filters/CFilterChain.php(133): BoinfoController-&gt;runAction()
  8 /opt/lampp/htdocs/bo/framework/web/filters/CFilter.php(40): CFilterChain-&gt;run()
  9 /opt/lampp/htdocs/bo/framework/web/CController.php(1145): CAccessControlFilter-&gt;filter()
  10 /opt/lampp/htdocs/bo/framework/web/filters/CInlineFilter.php(58): BoinfoController-&gt;filterAccessControl()
  11 /opt/lampp/htdocs/bo/framework/web/filters/CFilterChain.php(130): CInlineFilter-&gt;filter()
  12 /opt/lampp/htdocs/bo/framework/web/CController.php(291): CFilterChain-&gt;run()
  13 /opt/lampp/htdocs/bo/framework/web/CController.php(265): BoinfoController-&gt;runActionWithFilters()
  14 /opt/lampp/htdocs/bo/framework/web/CWebApplication.php(282): BoinfoController-&gt;run()
  15 /opt/lampp/htdocs/bo/framework/web/CWebApplication.php(141): CWebApplication-&gt;runController()
  16 /opt/lampp/htdocs/bo/framework/base/CApplication.php(180): CWebApplication-&gt;processRequest()
  17 /opt/lampp/htdocs/bo/index.php(13): CWebApplication-&gt;run()*
  </code></pre>
  
  <p>Here, code from my controller:</p>
  
  <pre><code>if (isset($_POST['ajax']) &amp;&amp; $_POST['ajax'] === 'boinfo-form') {
                      echo CActiveForm::validate(array($ico, $loc, $atrrib, $lang, $atext, $Yd, $Yz, $ls, $ch, $go));
                      Yii::app()-&gt;end();
                  }
  </code></pre>
  
  <p>And here is form from view:</p>
  
  <pre><code>$form = $this-&gt;beginWidget('CActiveForm', array(
      'id' =&gt; 'boinfo-form',
      'action' =&gt;$create,
      'enableAjaxValidation' =&gt; true,
              'clientOptions' =&gt; array(
                  'validateOnSubmit' =&gt; true,
                  'validateOnChange' =&gt; true,
              ),
      'htmlOptions' =&gt; array('enctype' =&gt; 'multipart/form-data'),
          ));
  ?&gt;
  </code></pre>
  
  <p>Can you help me solve this problem?</p>