HỆ GIÀN GIÁO RINGLOCK

PHP Error

Array and string offset access syntax with curly braces is deprecated

/home/u965068462/domains/trungthanhphat.net/public_html/protected/helper/StringHelper.php(97)

085 "D"); 086 087 $str = str_replace($marTViet, $marKoDau, $str); 088 return $str; 089 } 090 091 public static function catchu($value, $length) { 092 if ($value != '') { 093 if (is_array($value)) 094 list($string, $match_to) = $value; 095 else { 096 $string = $value; 097 $match_to = $value{0}; 098 } 099 100 $match_start = stristr($string, $match_to); 101 $match_compute = strlen($string) - strlen($match_start); 102 103 if (strlen($string) > $length) { 104 if ($match_compute < ($length - strlen($match_to))) { 105 $pre_string = substr($string, 0, $length); 106 $pos_end = strrpos($pre_string, " "); 107 if ($pos_end === false) 108 $string = $pre_string . "..."; 109 else

Stack Trace

#0 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/YiiBase.php(421): include() 416 break; 417 } 418 } 419 } 420 else 421 include($className.'.php'); 422 } 423 else // class name with namespace in PHP 5.3 424 { 425 $namespace=str_replace('\\','.',ltrim($className,'\\')); 426 if(($path=self::getPathOfAlias($namespace))!==false)
#1 unknown(0): YiiBase::autoload("StringHelper")
#2 + – /home/u965068462/domains/trungthanhphat.net/public_html/protected/widgets/page/breadcrumbs/views/index.php(17): spl_autoload_call("StringHelper") 12 $count = count($path); 13 if ($count) { 14 foreach ($path as $item) { 15 ?> 16 <div itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"> 17 <span itemprop="title"><a href="<?php echo Yii::app()->createUrl($route, array('cid' => $item['id'], 'title' => StringHelper::helper()->formatUrlKey($item['name']))); ?>"><?=$item['name']?></a></span> 18 </div> 19 <?php 20 } 21 }else{ 22 ?>
#3 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/CBaseController.php(123): require("/home/u965068462/domains/trungthanhphat.net/public_html/protecte...") 118 ob_implicit_flush(false); 119 require($_viewFile_); 120 return ob_get_clean(); 121 } 122 else 123 require($_viewFile_); 124 } 125 126 /** 127 * Creates a widget and initializes it. 128 * This method first creates the specified widget instance.
#4 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/CBaseController.php(88): CBaseController->renderInternal("/home/u965068462/domains/trungthanhphat.net/public_html/protecte...", array("path" => array("p251" => array("id" => "251", "name" => "HỆ GIÀN GIÁO RINGLOCK ")), "route" => "product/index", "class" => "cf", "title" => ""), false) 83 { 84 $widgetCount=count($this->_widgetStack); 85 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 86 $content=$renderer->renderFile($this,$viewFile,$data,$return); 87 else 88 $content=$this->renderInternal($viewFile,$data,$return); 89 if(count($this->_widgetStack)===$widgetCount) 90 return $content; 91 else 92 { 93 $widget=end($this->_widgetStack);
#5 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/widgets/CWidget.php(242): CBaseController->renderFile("/home/u965068462/domains/trungthanhphat.net/public_html/protecte...", array("path" => array("p251" => array("id" => "251", "name" => "HỆ GIÀN GIÁO RINGLOCK ")), "route" => "product/index", "class" => "cf", "title" => ""), false) 237 * @see getViewFile 238 */ 239 public function render($view,$data=null,$return=false) 240 { 241 if(($viewFile=$this->getViewFile($view))!==false) 242 return $this->renderFile($viewFile,$data,$return); 243 else 244 throw new CException(Yii::t('yii','{widget} cannot find the view "{view}".', 245 array('{widget}'=>get_class($this), '{view}'=>$view))); 246 } 247 }
#6 + – /home/u965068462/domains/trungthanhphat.net/public_html/protected/widgets/page/breadcrumbs/BreadCrumbs.php(78): CWidget->render("index", array("path" => array("p251" => array("id" => "251", "name" => "HỆ GIÀN GIÁO RINGLOCK ")), "route" => "product/index", "class" => "cf", "title" => "")) 73 default: 74 $route = $controller.'/list'; 75 break; 76 } 77 78 $this->render('index', array('path' => $path,'route'=>$route,'class'=>$this->class,'title'=>$title)); 79 } 80 81 } 82 83 ?>
#7 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/CBaseController.php(166): BreadCrumbs->run() 161 return ob_get_clean(); 162 } 163 else 164 { 165 $widget=$this->createWidget($className,$properties); 166 $widget->run(); 167 return $widget; 168 } 169 } 170 171 /**
#8 + – /home/u965068462/domains/trungthanhphat.net/public_html/themes/pc/views/product/view.php(3): CBaseController->widget("application.widgets.page.breadcrumbs.BreadCrumbs", array("class" => "cf")) 1 <div class="box-spCT fixCen"> 2 <?php 3 $this->widget('application.widgets.page.breadcrumbs.BreadCrumbs', array('class'=>'cf')); 4 ?> 5 <div class="cf"> 6 <div class="box-spCT-L"> 7 <a class="box-pSP" href="#" data-toggle="lightbox" ></a> 8 <?php
#9 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/CBaseController.php(119): require("/home/u965068462/domains/trungthanhphat.net/public_html/themes/p...") 114 $data=$_data_; 115 if($_return_) 116 { 117 ob_start(); 118 ob_implicit_flush(false); 119 require($_viewFile_); 120 return ob_get_clean(); 121 } 122 else 123 require($_viewFile_); 124 }
#10 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/CBaseController.php(88): CBaseController->renderInternal("/home/u965068462/domains/trungthanhphat.net/public_html/themes/p...", array("product" => Product, "attributes" => array(), "others" => array(Product, Product, Product)), true) 83 { 84 $widgetCount=count($this->_widgetStack); 85 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 86 $content=$renderer->renderFile($this,$viewFile,$data,$return); 87 else 88 $content=$this->renderInternal($viewFile,$data,$return); 89 if(count($this->_widgetStack)===$widgetCount) 90 return $content; 91 else 92 { 93 $widget=end($this->_widgetStack);
#11 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/CController.php(866): CBaseController->renderFile("/home/u965068462/domains/trungthanhphat.net/public_html/themes/p...", array("product" => Product, "attributes" => array(), "others" => array(Product, Product, Product)), true) 861 */ 862 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 863 { 864 if(($viewFile=$this->getViewFile($view))!==false) 865 { 866 $output=$this->renderFile($viewFile,$data,true); 867 if($processOutput) 868 $output=$this->processOutput($output); 869 if($return) 870 return $output; 871 else
#12 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/CController.php(779): CController->renderPartial("view", array("product" => Product, "attributes" => array(), "others" => array(Product, Product, Product)), true) 774 */ 775 public function render($view,$data=null,$return=false) 776 { 777 if($this->beforeRender($view)) 778 { 779 $output=$this->renderPartial($view,$data,true); 780 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 781 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 782 783 $this->afterRender($view,$output); 784
#13 + – /home/u965068462/domains/trungthanhphat.net/public_html/protected/controllers/ProductController.php(205): CController->render("view", array("product" => Product, "attributes" => array(), "others" => array(Product, Product, Product))) 200 201 202 $this->render('view', array( 203 'product' => $product, 204 'attributes' => $attributes, 205 'others' => $others, 206 )); 207 } else { 208 $this->render('empty', array('message' => 'Sản phẩm không tồn tại')); 209 } 210 }
#14 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/actions/CInlineAction.php(50): ProductController->actionView() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 }
#15 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/CController.php(300): CInlineAction->runWithParams(array("title" => "he-gian-giao-ringlock", "id" => "251")) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction;
#16 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 }
#17 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/filters/CFilter.php(41): CFilterChain->run() 36 */ 37 public function filter($filterChain) 38 { 39 if($this->preFilter($filterChain)) 40 { 41 $filterChain->run(); 42 $this->postFilter($filterChain); 43 } 44 } 45 46 /**
#18 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/CController.php(1144): CFilter->filter(CFilterChain) 1139 */ 1140 public function filterAccessControl($filterChain) 1141 { 1142 $filter=new CAccessControlFilter; 1143 $filter->setRules($this->accessRules()); 1144 $filter->filter($filterChain); 1145 } 1146 1147 /** 1148 * Generates pagination information. 1149 * This method can be used to generate pagination information given item count
#19 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(CFilterChain) 54 * @param CFilterChain $filterChain the filter chain that the filter is on. 55 */ 56 public function filter($filterChain) 57 { 58 $method='filter'.$this->name; 59 $filterChain->controller->$method($filterChain); 60 } 61 }
#20 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 }
#21 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/CController.php(283): CFilterChain->run() 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); 284 $this->_action=$priorAction; 285 } 286 } 287 288 /**
#22 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array("accessControl")) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID);
#23 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/CWebApplication.php(277): CController->run("view") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route)));
#24 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/web/CWebApplication.php(136): CWebApplication->runController("product/view") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components.
#25 + – /home/u965068462/domains/trungthanhphat.net/public_html/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /**
#26 + – /home/u965068462/domains/trungthanhphat.net/public_html/index.php(27): CApplication->run() 22 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 23 24 require_once($yii); 25 $app = Yii::createWebApplication($config); 26 27 $app->run();
2025-12-18 15:40:09 LiteSpeed Yii Framework/1.1.8

Từ khóa » Hệ Giàn Giáo Ringlock