/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']))
#0 |
+
–
/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/web/helpers/CHtml.php(2255): CComponent->__get("fullname") 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 |
#1 |
+
–
/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/web/helpers/CHtml.php(1980): CHtml::resolveValue(ContactForm, "fullname") 1975 } 1976 1977 if($type==='file') 1978 unset($htmlOptions['value']); 1979 elseif(!isset($htmlOptions['value'])) 1980 $htmlOptions['value']=self::resolveValue($model,$attribute); 1981 if($model->hasErrors($attribute)) 1982 self::addErrorCss($htmlOptions); 1983 return self::tag('input',$htmlOptions); 1984 } 1985 |
#2 |
+
–
/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/web/helpers/CHtml.php(1257): CHtml::activeInputField("text", ContactForm, "fullname", array("class" => "form-control", "maxlength" => 255, "name" => "ContactForm[fullname]", "id" => "ContactForm_fullname")) 1252 */ 1253 public static function activeTextField($model,$attribute,$htmlOptions=array()) 1254 { 1255 self::resolveNameID($model,$attribute,$htmlOptions); 1256 self::clientChange('change',$htmlOptions); 1257 return self::activeInputField('text',$model,$attribute,$htmlOptions); 1258 } 1259 1260 /** 1261 * Generates a url field input for a model attribute. 1262 * If the attribute has input error, the input field's CSS class will |
#3 |
+
–
/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/web/widgets/CActiveForm.php(657): CHtml::activeTextField(ContactForm, "fullname", array("class" => "form-control", "maxlength" => 255)) 652 * @param array $htmlOptions additional HTML attributes. 653 * @return string the generated input field 654 */ 655 public function textField($model,$attribute,$htmlOptions=array()) 656 { 657 return CHtml::activeTextField($model,$attribute,$htmlOptions); 658 } 659 660 /** 661 * Renders a hidden field for a model attribute. 662 * This method is a wrapper of {@link CHtml::activeHiddenField}. |
#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"> |
#5 |
+
–
/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/web/CBaseController.php(126): require("/home/thuphap/domains/thuphapvietnam.net/public_html/frontend/pr...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#6 |
+
–
/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/thuphap/domains/thuphapvietnam.net/public_html/frontend/pr...", array("model" => ContactForm, "msg" => ""), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#7 |
+
–
/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/web/CController.php(869): CBaseController->renderFile("/home/thuphap/domains/thuphapvietnam.net/public_html/frontend/pr...", array("model" => ContactForm, "msg" => ""), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#8 |
+
–
/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/web/CController.php(782): CController->renderPartial("index", array("model" => ContactForm, "msg" => ""), true) 777 */ 778 public function render($view,$data=null,$return=false) 779 { 780 if($this->beforeRender($view)) 781 { 782 $output=$this->renderPartial($view,$data,true); 783 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 784 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 785 786 $this->afterRender($view,$output); 787 |
#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 } |
#10 |
+
–
/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/web/actions/CInlineAction.php(49): ContactsController->actionIndex() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#11 |
+
–
/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/web/CController.php(308): CInlineAction->runWithParams(array()) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#12 |
+
–
/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#13 |
+
–
/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#14 |
+
–
/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/web/CWebApplication.php(282): CController->run("index") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#15 |
+
–
/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/web/CWebApplication.php(141): CWebApplication->runController("contacts/index") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#16 |
+
–
/home/thuphap/domains/thuphapvietnam.net/public_html/common/lib/framework/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
#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(); |