/var/www/planeta/framework/base/CModule.php(105)
093 /** 094 * Getter magic method. 095 * This method is overridden to support accessing application components 096 * like reading module properties. 097 * @param string $name application component or property name 098 * @return mixed the named property value 099 */ 100 public function __get($name) 101 { 102 if($this->hasComponent($name)) 103 return $this->getComponent($name); 104 else 105 return parent::__get($name); 106 } 107 108 /** 109 * Checks if a property value is null. 110 * This method overrides the parent implementation by checking 111 * if the named application component is loaded. 112 * @param string $name the property name or the event name 113 * @return boolean whether the property value is null 114 */ 115 public function __isset($name) 116 { 117 if($this->hasComponent($name))
#0 |
+
–
/var/www/planeta/framework/i18n/CLocale.php(64): CLocale->__construct("kz") 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 |
unknown(0): CLocale::getInstance("kz")
|
#2 |
+
–
/var/www/planeta/framework/base/CApplication.php(406): call_user_func_array(array("CLocale", "getInstance"), array("kz")) 401 * @param string $localeID the locale ID (e.g. en_US). If null, the {@link getLanguage application language ID} will be used. 402 * @return an instance of CLocale 403 */ 404 public function getLocale($localeID=null) 405 { 406 return call_user_func_array(array($this->localeClass, 'getInstance'),array($localeID===null?$this->getLanguage():$localeID)); 407 } 408 409 /** 410 * Returns the directory that contains the locale data. 411 * @return string the directory that contains the locale data. It defaults to 'framework/i18n/data'. |
#3 |
+
–
/var/www/planeta/framework/base/CComponent.php(111): CApplication->getLocale() 106 */ 107 public function __get($name) 108 { 109 $getter='get'.$name; 110 if(method_exists($this,$getter)) 111 return $this->$getter(); 112 elseif(strncasecmp($name,'on',2)===0 && method_exists($this,$name)) 113 { 114 // duplicating getEventHandlers() here for performance 115 $name=strtolower($name); 116 if(!isset($this->_e[$name])) |
#4 |
+
–
/var/www/planeta/framework/base/CModule.php(105): CComponent->__get("locale") 100 public function __get($name) 101 { 102 if($this->hasComponent($name)) 103 return $this->getComponent($name); 104 else 105 return parent::__get($name); 106 } 107 108 /** 109 * Checks if a property value is null. 110 * This method overrides the parent implementation by checking |
#5 |
+
–
/var/www/planeta/protected/views/page/_normal.php(39): CModule->__get("locale") 34 <div> 35 <p> 36 <a title="<?=$page->title?>" href="<?=$page->getRecordUrl()?>"><?php echo $page->title; ?></a> 37 </p> 38 <?php if ($model->url!='instruktsii' && $model->url!='stati'): ?> 39 <p class="date mt-14"><?=date('d',$page->created_at).' '.Yii::app()->locale->getMonthName(date("n",$page->created_at),'wide',false).' '.date('Y',$page->created_at)?> <?php echo Yii::t('site','г.');?></p> 40 <p><?php echo $this->getScontent($page->text,100); ?></p> 41 <?php endif ?> 42 </div> 43 <div class="clear"></div> 44 </div> |
#6 |
+
–
/var/www/planeta/framework/web/CBaseController.php(126): require("/var/www/planeta/protected/views/page/_normal.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 } |
#7 |
+
–
/var/www/planeta/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/planeta/protected/views/page/_normal.php", array("model" => PageCategory, "submodels" => array(), "modelPages" => array(221 => Page, 222 => Page, 223 => Page, 224 => Page, ...), "pages" => CPagination), 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); |
#8 |
+
–
/var/www/planeta/framework/web/CController.php(869): CBaseController->renderFile("/var/www/planeta/protected/views/page/_normal.php", array("model" => PageCategory, "submodels" => array(), "modelPages" => array(221 => Page, 222 => Page, 223 => Page, 224 => Page, ...), "pages" => CPagination), 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 |
#9 |
+
–
/var/www/planeta/protected/views/page/w_index.php(40): CController->renderPartial("_normal", array("model" => PageCategory, "submodels" => array(), "modelPages" => array(221 => Page, 222 => Page, 223 => Page, 224 => Page, ...), "pages" => CPagination)) 35 <?php echo $model->content; ?> 36 </div> 37 <?php if ($recStatus): ?> 38 <?=$this->renderPartial('_rec',compact('model','submodels','modelPages','pages'))?> 39 <?php else: ?> 40 <?=$this->renderPartial('_normal',compact('model','submodels','modelPages','pages'))?> 41 <?php endif ?> 42 </div> 43 </div> 44 </div> 45 </div> |
#10 |
+
–
/var/www/planeta/framework/web/CBaseController.php(126): require("/var/www/planeta/protected/views/page/w_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 |
+
–
/var/www/planeta/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/planeta/protected/views/page/w_index.php", array("model" => PageCategory, "models" => array(PageCategory, PageCategory, PageCategory), "submodels" => array(), "modelPages" => array(221 => Page, 222 => Page, 223 => Page, 224 => Page, ...), ...), 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 |
+
–
/var/www/planeta/framework/web/CController.php(869): CBaseController->renderFile("/var/www/planeta/protected/views/page/w_index.php", array("model" => PageCategory, "models" => array(PageCategory, PageCategory, PageCategory), "submodels" => array(), "modelPages" => array(221 => Page, 222 => Page, 223 => Page, 224 => Page, ...), ...), 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 |
+
–
/var/www/planeta/framework/web/CController.php(782): CController->renderPartial("w_index", array("model" => PageCategory, "models" => array(PageCategory, PageCategory, PageCategory), "submodels" => array(), "modelPages" => array(221 => Page, 222 => Page, 223 => Page, 224 => Page, ...), ...), 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 |
+
–
/var/www/planeta/protected/controllers/PageController.php(60): CController->render("w_index", array("model" => PageCategory, "models" => array(PageCategory, PageCategory, PageCategory), "submodels" => array(), "modelPages" => array(221 => Page, 222 => Page, 223 => Page, 224 => Page, ...), ...)) 55 } 56 if(!$this->breadcrumbs){ 57 $this->breadcrumbs[] = Yii::t('site','Библиотека'); 58 } 59 $models = PageCategory::model()->findAll(array('condition'=>"status='1' AND parent_id='0'")); 60 $this->render('w_index',compact('model','models','submodels','modelPages','pages')); 61 } 62 63 public function actionShow($url){ 64 $this->layout ='w_insidePage'; 65 $model = Page::model()->find(array( |
#15 |
+
–
/var/www/planeta/framework/web/actions/CInlineAction.php(49): PageController->actionIndex() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#16 |
+
–
/var/www/planeta/framework/web/CController.php(308): CInlineAction->runWithParams(array("language" => "kz", "url" => "video", "city" => 2)) 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 |
+
–
/var/www/planeta/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(); |
#18 |
+
–
/var/www/planeta/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); |
#19 |
+
–
/var/www/planeta/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))); |
#20 |
+
–
/var/www/planeta/framework/web/CWebApplication.php(141): CWebApplication->runController("page/index/url/video") 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. |
#21 |
+
–
/var/www/planeta/framework/base/CApplication.php(184): CWebApplication->processRequest() 179 public function run() 180 { 181 if($this->hasEventHandler('onBeginRequest')) 182 $this->onBeginRequest(new CEvent($this)); 183 register_shutdown_function(array($this,'end'),0,false); 184 $this->processRequest(); 185 if($this->hasEventHandler('onEndRequest')) 186 $this->onEndRequest(new CEvent($this)); 187 } 188 189 /** |
#22 |
+
–
/var/www/planeta/index.php(16): CApplication->run() 11 // remove the following line when in production mode 12 //defined('YII_DEBUG') or define('YII_DEBUG',true); 13 defined('YII_DEBUG') OR define('YII_DEBUG',true); 14 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',0); 15 require_once($yii); 16 Yii::createWebApplication($config)->run(); |