/var/www/hosts/lk.usoft.ru/protected/modules/bkseminar/components/widgets/views/NextSeminars/index.php(4)
01 <div class="index-seminar"> 02 <h4 class="razdel-name">Ближайшие семинары</h4> 03 <?php foreach($model as $item): ?> 04 <div class="item-sem <?=($item->orderCount)?'ordered':' '?> <?=($item->special == 1) ? 'special_seminar' : '';?>"> 05 <div class="pull-left data-sem" <?=($item->orderCount)?'title="Вы уже записаны на этот семинар"':' '?> > 06 <span class='cl-d'><?= Yii::app()->dateFormatter->format("<i>d</i><b>MMM</b>",$item->date); ?></span> 07 </div> 08 <div class="index-sem-title"> 09 <a class="red-gray" href="<?=Yii::app()->getModule('bkseminar')->moduleUrl.'view/'.$item->id ?>"><span><?= $item->title; ?></span></a> 10 <span class="paid-label paid-label-<?=in_array($item->seminar_type->id, array(1,2,3,4,5,6,9,12,13)) ? $item->seminar_type->id : 'default' ?>"><?= $item->seminar_type->name; ?></span> 11 <p class="index-sem-widget"><span><?= $item->lectToString();?></span></p> 12 </div> 13 <div class="clearfix"></div> 14 </div> 15 16 <?php endforeach; ?>
| #0 |
+
–
/var/www/hosts/framework/db/ar/CActiveFinder.php(1405): CStatElement->queryOneMany() 1400 public function query() 1401 { 1402 if(preg_match('/^\s*(.*?)\((.*)\)\s*$/',$this->relation->foreignKey,$matches)) 1403 $this->queryManyMany($matches[1],$matches[2]); 1404 else 1405 $this->queryOneMany(); 1406 } 1407 1408 private function queryOneMany() 1409 { 1410 $relation=$this->relation; |
| #1 |
+
–
/var/www/hosts/framework/db/ar/CActiveFinder.php(472): CStatElement->query() 467 $pk[$name]=$baseRecord->$name; 468 $this->records[serialize($pk)]=$baseRecord; 469 } 470 471 foreach($this->stats as $stat) 472 $stat->query(); 473 474 if(!$this->children) 475 return; 476 477 $params=array(); |
| #2 |
+
–
/var/www/hosts/framework/db/ar/CActiveFinder.php(163): CJoinElement->lazyFind() 158 * This method is internally invoked by {@link CActiveRecord} to support lazy loading. 159 * @param CActiveRecord $baseRecord the base record whose related objects are to be loaded 160 */ 161 public function lazyFind($baseRecord) 162 { 163 $this->_joinTree->lazyFind($baseRecord); 164 if(!empty($this->_joinTree->children)) 165 { 166 foreach($this->_joinTree->children as $child) 167 $child->afterFind(); 168 } |
| #3 |
+
–
/var/www/hosts/framework/db/ar/CActiveRecord.php(281): CActiveFinder->lazyFind() 276 else 277 $r=$name; 278 unset($this->_related[$name]); 279 280 $finder=$this->getActiveFinder($r); 281 $finder->lazyFind($this); 282 283 if(!isset($this->_related[$name])) 284 { 285 if($relation instanceof CHasManyRelation) 286 $this->_related[$name]=array(); |
| #4 |
+
–
/var/www/hosts/framework/db/ar/CActiveRecord.php(143): CActiveRecord->getRelated() 138 elseif(isset($this->getMetaData()->columns[$name])) 139 return null; 140 elseif(isset($this->_related[$name])) 141 return $this->_related[$name]; 142 elseif(isset($this->getMetaData()->relations[$name])) 143 return $this->getRelated($name); 144 else 145 return parent::__get($name); 146 } 147 148 /** |
| #5 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/bkseminar/components/widgets/views/NextSeminars/index.php(4): CActiveRecord->__get() 1 <div class="index-seminar"> 2 <h4 class="razdel-name">Ближайшие семинары</h4> 3 <?php foreach($model as $item): ?> 4 <div class="item-sem <?=($item->orderCount)?'ordered':' '?> <?=($item->special == 1) ? 'special_seminar' : '';?>"> 5 <div class="pull-left data-sem" <?=($item->orderCount)?'title="Вы уже записаны на этот семинар"':' '?> > 6 <span class='cl-d'><?= Yii::app()->dateFormatter->format("<i>d</i><b>MMM</b>",$item->date); ?></span> 7 </div> 8 <div class="index-sem-title"> 9 <a class="red-gray" href="<?=Yii::app()->getModule('bkseminar')->moduleUrl.'view/'.$item->id ?>"><span><?= $item->title; ?></span></a> |
| #6 |
+
–
/var/www/hosts/framework/web/CBaseController.php(130): require("/var/www/hosts/lk.usoft.ru/protected/modules/bkseminar/component...") 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } 132 133 /** 134 * Creates a widget and initializes it. 135 * This method first creates the specified widget instance. |
| #7 |
+
–
/var/www/hosts/framework/web/CBaseController.php(95): CBaseController->renderInternal() 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/hosts/framework/web/widgets/CWidget.php(244): CBaseController->renderFile() 239 * @see getViewFile 240 */ 241 public function render($view,$data=null,$return=false) 242 { 243 if(($viewFile=$this->getViewFile($view))!==false) 244 return $this->renderFile($viewFile,$data,$return); 245 else 246 throw new CException(Yii::t('yii','{widget} cannot find the view "{view}".', 247 array('{widget}'=>get_class($this), '{view}'=>$view))); 248 } 249 } |
| #9 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/bkseminar/components/widgets/NextSeminarsWidget.php(26): CWidget->render() 21 } 22 //выбрать типы, доступные для зашедшего на сайт 23 $model = $filter->findAll(); 24 25 if ($model) { 26 $this->render('NextSeminars/index', array( 27 'model' => $model, 28 )); 29 } 30 } 31 } |
| #10 |
+
–
/var/www/hosts/framework/web/CBaseController.php(173): NextSeminarsWidget->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 /** |
| #11 |
+
–
/var/www/hosts/lk.usoft.ru/protected/views/frontend/fishki.php(79): CBaseController->widget() 74 <?php endif; */ ?> 75 76 77 <?php $this->widget('application.components.LearningWidget'); ?> 78 79 <?php $this->widget('bkseminar.components.widgets.NextSeminarsWidget', array('seminarsInWidget' => Yii::app()->config->get('Seminar.widget.limit'))); ?> 80 <?php $this->widget('news.components.NewsTop5Widget'); ?> 81 <?php 82 $page = Yii::app()->getModule('navigator')->page(); 83 $this->widget('application.modules.navigator.components.NavigationWidget', [ 84 'parent' => $page['page_pid'], |
| #12 |
+
–
/var/www/hosts/framework/web/CBaseController.php(126): require("/var/www/hosts/lk.usoft.ru/protected/views/frontend/fishki.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 } |
| #13 |
+
–
/var/www/hosts/framework/web/CBaseController.php(95): CBaseController->renderInternal() 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); |
| #14 |
+
–
/var/www/hosts/framework/web/CController.php(789): CBaseController->renderFile() 784 { 785 if($this->beforeRender($view)) 786 { 787 $output=$this->renderPartial($view,$data,true); 788 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 789 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 790 791 $this->afterRender($view,$output); 792 793 $output=$this->processOutput($output); 794 |
| #15 |
+
–
/var/www/hosts/lk.usoft.ru/protected/fcomponents/Controller.php(390): CController->render() 385 echo $this->externalTemplate($content); 386 return true; 387 } 388 } else { 389 390 return parent::render($view, $data, $return); // TODO: Change the autogenerated stub 391 } 392 } 393 394 } |
| #16 |
+
–
/var/www/hosts/lk.usoft.ru/protected/actions/LegacyAction.php(33): Controller->render() 28 29 ///////////////////////////////////////////////////////////// 30 31 ///////////////////////////////////////////////////////////// 32 33 $this->controller->render('//common/legacy', array('content' => $content)); 34 35 36 } 37 38 |
| #17 |
+
–
/var/www/hosts/framework/web/actions/CAction.php(76): LegacyAction->run() 71 { 72 $method=new ReflectionMethod($this, 'run'); 73 if($method->getNumberOfParameters()>0) 74 return $this->runWithParamsInternal($this, $method, $params); 75 else 76 return $this->run(); 77 } 78 79 /** 80 * Executes a method of an object with the supplied named parameters. 81 * This method is internally used. |
| #18 |
+
–
/var/www/hosts/framework/web/CController.php(312): CAction->runWithParams() 307 $priorAction=$this->_action; 308 $this->_action=$action; 309 310 if ($this->beforeAction($action)) { 311 312 if ($action->runWithParams($this->getActionParams())===false) { 313 $this->invalidActionParams($action); 314 } else { 315 $this->afterAction($action); 316 } 317 } |
| #19 |
+
–
/var/www/hosts/framework/web/CController.php(290): CController->runAction() 285 */ 286 public function runActionWithFilters($action,$filters) 287 { 288 289 if(empty($filters)) { 290 $this->runAction($action); 291 } else { 292 $priorAction=$this->_action; 293 $this->_action=$action; 294 CFilterChain::create($this,$action,$filters)->run(); 295 $this->_action=$priorAction; |
| #20 |
+
–
/var/www/hosts/framework/web/CController.php(268): CController->runActionWithFilters() 263 if (($parent=$this->getModule())===null) { 264 $parent=Yii::app(); 265 } 266 267 if ($parent->beforeControllerAction($this,$action)) { 268 $this->runActionWithFilters($action,$this->filters()); 269 $parent->afterControllerAction($this,$action); 270 } 271 } else { 272 $this->missingAction($actionID); 273 } |
| #21 |
+
–
/var/www/hosts/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))); |
| #22 |
+
–
/var/www/hosts/framework/web/CWebApplication.php(141): CWebApplication->runController() 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. |
| #23 |
+
–
/var/www/hosts/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 /** |
| #24 |
+
–
/var/www/hosts/lk.usoft.ru/index.php(68): CApplication->run() 63 //Yii::setPathOfAlias('templates', $dirname_file .DIRECTORY_SEPARATOR.'templates'); 64 Yii::setPathOfAlias('core', INDEX_DIR . DIRECTORY_SEPARATOR . 'core'); 65 require_once(__DIR__ . DIRECTORY_SEPARATOR . 'protected' . DIRECTORY_SEPARATOR . 'vendors' . DIRECTORY_SEPARATOR . 'Loader.php'); 66 Yii::registerAutoloader(array('Loader', 'systemMainAutoload')); 67 68 Yii::createWebApplication($config_yii_path)->run(); |