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/shops.php(31): CBaseController->widget("application.widgets.undersun.NewsCalendar", array("link" => "shops"))
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(258): CController->render("shops", array("dataProvider" => CActiveDataProvider))
#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-19 11:30:51 Apache/2.4.56 (Red Hat Enterprise Linux 8) PHP/5.2.17 Yii Framework/1.1.11-dev