CException

Property "ShareForm.verifyCode" is not defined.

/home/ochi55/yii-1.1.15/web/helpers/CHtml.php(2529)

2517             $name=substr($attribute,0,$pos);
2518             $value=$model->$name;
2519             foreach(explode('][',rtrim(substr($attribute,$pos+1),']')) as $id)
2520             {
2521                 if((is_array($value) || $value instanceof ArrayAccess) && isset($value[$id]))
2522                     $value=$value[$id];
2523                 else
2524                     return null;
2525             }
2526             return $value;
2527         }
2528         else
2529             return $model->$attribute;
2530     }
2531 
2532     /**
2533      * Appends {@link errorCss} to the 'class' attribute.
2534      * @param array $htmlOptions HTML options to be modified
2535      */
2536     protected static function addErrorCss(&$htmlOptions)
2537     {
2538         if(empty(self::$errorCss))
2539             return;
2540 
2541         if(isset($htmlOptions['class']))

Stack Trace

#4
+
 /home/ochi55/public_html/protected/views/site/share_form.php(115): CActiveForm->textField(ShareForm, "verifyCode")
110         <?php if(CCaptcha::checkRequirements()): ?>
111         <div class="row captcha">
112             <?php echo $form->labelEx($model,'verifyCode'); ?>
113             <div>
114             <?php $this->widget('CCaptcha'); ?>
115             <?php echo $form->textField($model,'verifyCode'); ?>
116             </div>
117             <?php echo $form->error($model,'verifyCode'); ?>
118         </div>
119         <?php endif; ?>
120      
#9
+
 /home/ochi55/public_html/protected/controllers/SiteController.php(684): CController->render("share_form", array("model" => ShareForm, "client" => Client))
679 
680                 }
681                 $this->refresh();
682             }
683         }
684         $this->render('share_form',array('model'=>$model,'client'=>$client));
685 
686     }
687 }
#19
+
 /home/ochi55/public_html/index.php(12): CApplication->run()
07 defined('YII_DEBUG') or define('YII_DEBUG',true);
08 // specify how many levels of call stack should be shown in each log message
09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
10 
11 require_once($yii);
12 Yii::createWebApplication($config)->run();
2024-03-19 10:27:01 Apache Yii Framework/1.1.15