/home/tungyam1/public_html/framework/i18n/CLocale.php(105)
093 * to obtain an instance of the specified locale. 094 * @param string $id the locale ID (e.g. en_US) 095 * @throws CException if given locale id is not recognized 096 */ 097 protected function __construct($id) 098 { 099 $this->_id=self::getCanonicalID($id); 100 $dataPath=self::$dataPath===null ? dirname(__FILE__).DIRECTORY_SEPARATOR.'data' : self::$dataPath; 101 $dataFile=$dataPath.DIRECTORY_SEPARATOR.$this->_id.'.php'; 102 if(is_file($dataFile)) 103 $this->_data=require($dataFile); 104 else 105 throw new CException(Yii::t('yii','Unrecognized locale "{locale}".',array('{locale}'=>$id))); 106 } 107 108 /** 109 * Converts a locale ID to its canonical form. 110 * In canonical form, a locale ID consists of only underscores and lower-case letters. 111 * @param string $id the locale ID to be converted 112 * @return string the locale ID in canonical form 113 */ 114 public static function getCanonicalID($id) 115 { 116 return strtolower(str_replace('-','_',$id)); 117 }
#0 |
+
–
/home/tungyam1/public_html/framework/i18n/CLocale.php(64): CLocale->__construct(false) 59 { 60 static $locales=array(); 61 if(isset($locales[$id])) 62 return $locales[$id]; 63 else 64 return $locales[$id]=new CLocale($id); 65 } 66 67 /** 68 * @return array IDs of the locales which the framework can recognize 69 */ |
#1 |
+
–
/home/tungyam1/public_html/framework/base/CApplication.php(402): CLocale::getInstance(false) 397 * @param string $localeID the locale ID (e.g. en_US). If null, the {@link getLanguage application language ID} will be used. 398 * @return CLocale the locale instance 399 */ 400 public function getLocale($localeID=null) 401 { 402 return CLocale::getInstance($localeID===null?$this->getLanguage():$localeID); 403 } 404 405 /** 406 * Returns the directory that contains the locale data. 407 * @return string the directory that contains the locale data. It defaults to 'framework/i18n/data'. |
#2 |
+
–
/home/tungyam1/public_html/framework/YiiBase.php(597): CApplication->getLocale(null) 592 if(strpos($message,'|')!==false) 593 { 594 if(strpos($message,'#')===false) 595 { 596 $chunks=explode('|',$message); 597 $expressions=self::$_app->getLocale($language)->getPluralRules(); 598 if($n=min(count($chunks),count($expressions))) 599 { 600 for($i=0;$i<$n;$i++) 601 $chunks[$i]=$expressions[$i].'#'.$chunks[$i]; 602 |
#3 |
+
–
/home/tungyam1/public_html/framework/zii/widgets/CBaseListView.php(221): YiiBase::t("zii", "Displaying {start}-{end} of 1 result.|Displaying {start}-{end} o...", "152") 216 { 217 $end=$total; 218 $start=$end-$count+1; 219 } 220 if(($summaryText=$this->summaryText)===null) 221 $summaryText=Yii::t('zii','Displaying {start}-{end} of 1 result.|Displaying {start}-{end} of {count} results.',$total); 222 echo strtr($summaryText,array( 223 '{start}'=>$start, 224 '{end}'=>$end, 225 '{count}'=>$total, 226 '{page}'=>$pagination->currentPage+1, |
#4 |
+
–
/home/tungyam1/public_html/framework/zii/widgets/CBaseListView.php(167): CBaseListView->renderSummary() 162 protected function renderSection($matches) 163 { 164 $method='render'.$matches[1]; 165 if(method_exists($this,$method)) 166 { 167 $this->$method(); 168 $html=ob_get_contents(); 169 ob_clean(); 170 return $html; 171 } 172 else |
#5 |
unknown(0): CBaseListView->renderSection(array("{summary}", "summary"))
|
#6 |
+
–
/home/tungyam1/public_html/framework/zii/widgets/CBaseListView.php(150): preg_replace_callback("/{(\w+)}/", array(TbListView, "renderSection"), "{summary}
{sorter}
{items}
{pager}") 145 * The rendering results will replace the corresponding placeholders in {@link template}. 146 */ 147 public function renderContent() 148 { 149 ob_start(); 150 echo preg_replace_callback("/{(\w+)}/",array($this,'renderSection'),$this->template); 151 ob_end_flush(); 152 } 153 154 /** 155 * Renders a section. |
#7 |
+
–
/home/tungyam1/public_html/framework/zii/widgets/CBaseListView.php(135): CBaseListView->renderContent() 130 { 131 $this->registerClientScript(); 132 133 echo CHtml::openTag($this->tagName,$this->htmlOptions)."\n"; 134 135 $this->renderContent(); 136 $this->renderKeys(); 137 138 echo CHtml::closeTag($this->tagName); 139 } 140 |
#8 |
+
–
/home/tungyam1/public_html/framework/web/CBaseController.php(173): CBaseListView->run() 168 return ob_get_clean(); 169 } 170 else 171 { 172 $widget=$this->createWidget($className,$properties); 173 $widget->run(); 174 return $widget; 175 } 176 } 177 178 /** |
#9 |
+
–
/home/tungyam1/public_html/protected/views/news/index.php(163): CBaseController->widget("bootstrap.widgets.TbListView", array("dataProvider" => CActiveDataProvider, "itemView" => "_view")) 158 <div class="row-fluid"> 159 <div class="span12 module_cont module_blog"> 160 <?php $this->widget('bootstrap.widgets.TbListView',array( 161 'dataProvider'=>$dataProvider, 162 'itemView'=>'_view', 163 )); ?> 164 <!-- 165 <ul class="pagerblock"> 166 167 <li><a class="current" href="#">1</a></li> 168 <li><a href="#">2</a></li> |
#10 |
+
–
/home/tungyam1/public_html/framework/web/CBaseController.php(126): require("/home/tungyam1/public_html/protected/views/news/index.php") 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 } |
#11 |
+
–
/home/tungyam1/public_html/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/tungyam1/public_html/protected/views/news//index.php", array("dataProvider" => CActiveDataProvider), 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); |
#12 |
+
–
/home/tungyam1/public_html/framework/web/CController.php(869): CBaseController->renderFile("/home/tungyam1/public_html/protected/views/news//index.php", array("dataProvider" => CActiveDataProvider), 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 |
#13 |
+
–
/home/tungyam1/public_html/framework/web/CController.php(782): CController->renderPartial("index", array("dataProvider" => CActiveDataProvider), 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 |
#14 |
+
–
/home/tungyam1/public_html/protected/controllers/NewsController.php(145): CController->render("index", array("dataProvider" => CActiveDataProvider)) 140 $dataProvider=new CActiveDataProvider('News',array( 141 'criteria'=>$criteria 142 )); 143 $this->render('index'.(Yii::app()->language=="en_us"?"EN":""),array( 144 'dataProvider'=>$dataProvider, 145 )); 146 } 147 148 /** 149 * Manages all models. 150 */ |
#15 |
+
–
/home/tungyam1/public_html/framework/web/actions/CInlineAction.php(49): NewsController->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 } |
#16 |
+
–
/home/tungyam1/public_html/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; |
#17 |
+
–
/home/tungyam1/public_html/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction) 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
#18 |
+
–
/home/tungyam1/public_html/framework/web/filters/CFilter.php(40): CFilterChain->run() 35 */ 36 public function filter($filterChain) 37 { 38 if($this->preFilter($filterChain)) 39 { 40 $filterChain->run(); 41 $this->postFilter($filterChain); 42 } 43 } 44 45 /** |
#19 |
+
–
/home/tungyam1/public_html/framework/web/CController.php(1145): CFilter->filter(CFilterChain) 1140 */ 1141 public function filterAccessControl($filterChain) 1142 { 1143 $filter=new CAccessControlFilter; 1144 $filter->setRules($this->accessRules()); 1145 $filter->filter($filterChain); 1146 } 1147 1148 /** 1149 * Returns a persistent page state value. 1150 * A page state is a variable that is persistent across POST requests of the same page. |
#20 |
+
–
/home/tungyam1/public_html/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain) 53 * @param CFilterChain $filterChain the filter chain that the filter is on. 54 */ 55 public function filter($filterChain) 56 { 57 $method='filter'.$this->name; 58 $filterChain->controller->$method($filterChain); 59 } 60 } |
#21 |
+
–
/home/tungyam1/public_html/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain) 125 { 126 if($this->offsetExists($this->filterIndex)) 127 { 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
#22 |
+
–
/home/tungyam1/public_html/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
#23 |
+
–
/home/tungyam1/public_html/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl")) 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); |
#24 |
+
–
/home/tungyam1/public_html/framework/web/CWebApplication.php(282): CController->run("") 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))); |
#25 |
+
–
/home/tungyam1/public_html/framework/web/CWebApplication.php(141): CWebApplication->runController("news") 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. |
#26 |
+
–
/home/tungyam1/public_html/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#27 |
+
–
/home/tungyam1/public_html/index-test.php(15): CApplication->run() 10 11 // remove the following line when in production mode 12 defined('YII_DEBUG') or define('YII_DEBUG',true); 13 14 require_once($yii); 15 Yii::createWebApplication($config)->run(); |