/home/podsolnuh1/tc-podsolnuh.ru/docs/protected/widgets/undersun/NewsCalendar.php(14)
02 //TODO proto 03 /** 04 * Widget to show banners 05 * 06 * 07 */ 08 class NewsCalendar extends SimpleCalendar { 09 10 11 public $years; 12 public $_link; 13 14 public function init() 15 { 16 parent::init(); 17 18 19 $years = Yii::app()->db->createCommand()->selectDistinct('YEAR(date)')->from('news')->order('date')->queryColumn(); 20 21 $this->years = $years; 22 23 //SELECT DISTINCT YEAR(DATE) FROM news 24 $criteria = new CDbCriteria(); 25 $criteria->order = 'id'; 26
#0 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/YiiBase.php(316): require("/home/podsolnuh1/tc-podsolnuh.ru/docs/protected/widgets/undersun...") 311 if($isClass) 312 { 313 if($forceInclude) 314 { 315 if(is_file($path.'.php')) 316 require($path.'.php'); 317 else 318 throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing PHP file.',array('{alias}'=>$alias))); 319 self::$_imports[$alias]=$className; 320 } 321 else |
#1 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/web/CWidgetFactory.php(147): YiiBase::import("application.widgets.undersun.NewsCalendar", true) 142 * @param array $properties the initial property values (name=>value) of the widget. 143 * @return CWidget the newly created widget whose properties have been initialized with the given values. 144 */ 145 public function createWidget($owner,$className,$properties=array()) 146 { 147 $className=Yii::import($className,true); 148 $widget=new $className($owner); 149 150 if(isset($this->widgets[$className])) 151 $properties=$properties===array() ? $this->widgets[$className] : CMap::mergeArray($this->widgets[$className],$properties); 152 if($this->enableSkin) |
#2 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/web/CBaseController.php(147): CWidgetFactory->createWidget(NewsController, "application.widgets.undersun.NewsCalendar", array()) 142 * @param array $properties initial property values 143 * @return CWidget the fully initialized widget instance. 144 */ 145 public function createWidget($className,$properties=array()) 146 { 147 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 148 $widget->init(); 149 return $widget; 150 } 151 152 /** |
#3 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/web/CBaseController.php(173): CBaseController->createWidget("application.widgets.undersun.NewsCalendar", array()) 168 $widget->run(); 169 return ob_get_clean(); 170 } 171 else 172 { 173 $widget=$this->createWidget($className,$properties); 174 $widget->run(); 175 return $widget; 176 } 177 } 178 |
#4 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/docs/protected/views/news/index.php(31): CBaseController->widget("application.widgets.undersun.NewsCalendar") 26 'ajaxUpdate'=>'false', 27 'enablePagination'=>false, 28 'summaryText'=>false, 29 /* 'loadingCssClass'=>'', 30 'pager'=>array( 31 'class'=>'Pager', 32 'htmlOptions'=>array( 33 'class'=>'news_dots' 34 ) 35 ), 36 'template'=>"{pager}\n{items}\n{pager}",*/ |
#5 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/web/CBaseController.php(127): require("/home/podsolnuh1/tc-podsolnuh.ru/docs/protected/views/news/index...") 122 $data=$_data_; 123 if($_return_) 124 { 125 ob_start(); 126 ob_implicit_flush(false); 127 require($_viewFile_); 128 return ob_get_clean(); 129 } 130 else 131 require($_viewFile_); 132 } |
#6 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/web/CBaseController.php(96): CBaseController->renderInternal("/home/podsolnuh1/tc-podsolnuh.ru/docs/protected/views/news/index...", array("dataProvider" => CActiveDataProvider), true) 091 { 092 $widgetCount=count($this->_widgetStack); 093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 094 $content=$renderer->renderFile($this,$viewFile,$data,$return); 095 else 096 $content=$this->renderInternal($viewFile,$data,$return); 097 if(count($this->_widgetStack)===$widgetCount) 098 return $content; 099 else 100 { 101 $widget=end($this->_widgetStack); |
#7 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/web/CController.php(870): CBaseController->renderFile("/home/podsolnuh1/tc-podsolnuh.ru/docs/protected/views/news/index...", array("dataProvider" => CActiveDataProvider), true) 865 */ 866 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 867 { 868 if(($viewFile=$this->getViewFile($view))!==false) 869 { 870 $output=$this->renderFile($viewFile,$data,true); 871 if($processOutput) 872 $output=$this->processOutput($output); 873 if($return) 874 return $output; 875 else |
#8 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/web/CController.php(783): CController->renderPartial("index", array("dataProvider" => CActiveDataProvider), true) 778 */ 779 public function render($view,$data=null,$return=false) 780 { 781 if($this->beforeRender($view)) 782 { 783 $output=$this->renderPartial($view,$data,true); 784 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 785 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 786 787 $this->afterRender($view,$output); 788 |
#9 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/docs/protected/controllers/NewsController.php(91): CController->render("index", array("dataProvider" => CActiveDataProvider)) 86 $criteria->params = array(':year'=>$year); 87 } 88 89 $criteria->order='date DESC'; 90 91 $dataProvider=new CActiveDataProvider('News',array( 92 'pagination'=>array( 93 'pageSize'=>10, 94 ), 95 'criteria'=>$criteria, 96 )); |
#10 |
unknown(0): NewsController->actionIndex(1)
|
#11 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/web/actions/CAction.php(107): ReflectionMethod->invokeArgs(NewsController, array(1)) 102 else if($param->isDefaultValueAvailable()) 103 $ps[]=$param->getDefaultValue(); 104 else 105 return false; 106 } 107 $method->invokeArgs($object,$ps); 108 return true; 109 } 110 } |
#12 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(NewsController, ReflectionMethod, array()) 43 { 44 $methodName='action'.$this->getId(); 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 } |
#13 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/web/CController.php(309): CInlineAction->runWithParams(array()) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#14 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/web/CController.php(287): CController->runAction(CInlineAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#15 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#16 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/web/CWebApplication.php(276): CController->run("index") 271 { 272 list($controller,$actionID)=$ca; 273 $oldController=$this->_controller; 274 $this->_controller=$controller; 275 $controller->init(); 276 $controller->run($actionID); 277 $this->_controller=$oldController; 278 } 279 else 280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 281 array('{route}'=>$route===''?$this->defaultController:$route))); |
#17 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/web/CWebApplication.php(135): CWebApplication->runController("news/index") 130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 $this->runController($route); 136 } 137 138 /** 139 * Registers the core application components. 140 * This method overrides the parent implementation by registering additional core components. |
#18 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#19 |
+
–
/home/podsolnuh1/tc-podsolnuh.ru/docs/index.php(24): CApplication->run() 19 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 20 } 21 22 require_once($globalFunctions); 23 require_once($yii); 24 Yii::createWebApplication($config)->run(); 25 |