CException

Property "ContactForm.fullname" is not defined.

/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/web/helpers/CHtml.php(2255)

2243             $name=substr($attribute,0,$pos);
2244             $value=$model->$name;
2245             foreach(explode('][',rtrim(substr($attribute,$pos+1),']')) as $id)
2246             {
2247                 if((is_array($value) || $value instanceof ArrayAccess) && isset($value[$id]))
2248                     $value=$value[$id];
2249                 else
2250                     return null;
2251             }
2252             return $value;
2253         }
2254         else
2255             return $model->$attribute;
2256     }
2257 
2258     /**
2259      * Appends {@link errorCss} to the 'class' attribute.
2260      * @param array $htmlOptions HTML options to be modified
2261      */
2262     protected static function addErrorCss(&$htmlOptions)
2263     {
2264         if(empty(self::$errorCss))
2265             return;
2266 
2267         if(isset($htmlOptions['class']))

Stack Trace

#4
+
 /home/thuphap/domains/thuphapvietnam.net/public_html/frontend/protected/views/contacts/index.php(43): CActiveForm->textField(ContactForm, "fullname", array("class" => "form-control", "maxlength" => 255))
38       </div>
39       <div class="content">
40         <div class="row sender-name-email">
41           <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 sender-name">
42             <label>Họ tên:<span class="alertrequired">*</span></label>
43            <?php echo $form->textField($model, 'fullname', array('class' => 'form-control', 'maxlength' => 255)); ?>        </div>
44           <div for="email-address" class="col-lg-6 col-md-6 col-sm-12 col-xs-12 sender-email">
45             <label>Email :<!--<span class="alertrequired">*</span>--></label>
46             <?php echo $form->textField($model, 'email', array('class' => 'form-control', 'maxlength' => 255)); ?>          </div>
47         </div>
48        <br class="clearBoth">
#9
+
 /home/thuphap/domains/thuphapvietnam.net/public_html/frontend/protected/controllers/ContactsController.php(61): CController->render("index", array("model" => ContactForm, "msg" => ""))
56         if($detect->isMobile())
57         {
58           $this->layout = 'mobile_product';
59           $this->render('mobile/index',  compact('model','msg'));
60         }else{
61           $this->render('index',  compact('model','msg'));
62         }
63     }
64 }
#17
+
 /home/thuphap/domains/thuphapvietnam.net/public_html/index.php(18): CApplication->run()
13 
14 require_once($yii);
15 require_once($global);
16 require_once($define);
17 
18 Yii::createWebApplication($config)->run();
2024-03-28 18:42:54 Apache/2 Yii Framework/1.1.13