PHP error

Declaration of NewsCalendar::getLink() should be compatible with that of SimpleCalendar::getLink()

/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 

Stack Trace

#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}",*/

#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         ));

#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 
2024-03-29 14:26:48 Apache/2.4.56 (Red Hat Enterprise Linux 8) PHP/5.2.17 Yii Framework/1.1.11-dev