PHP warning

Declaration of Controller::afterRender($view, $output) should be compatible with CController::afterRender($view, &$output)

/home/faculty/urps/public_html/protected/components/Controller.php(24)

12     public $layout='//layouts/column1';
13     /**
14      * @var array context menu items. This property will be assigned to {@link CMenu::items}.
15      */
16     public $menu=array();
17     /**
18      * @var array the breadcrumbs of the current page. The value of this property will
19      * be assigned to {@link CBreadcrumbs::links}. Please refer to {@link CBreadcrumbs::links}
20      * for more details on how to specify this property.
21      */
22     public $breadcrumbs=array();
23 
24     protected function afterRender($view, $output)
25     {
26         AjaxTrigger::applyTriggers();
27 
28         parent::afterRender($view, $output);
29     }
30     
31     /**
32      * Return data to browser as JSON
33      * @param array $data
34      */
35     protected function renderJSON($data)
36     {

Stack Trace

#2
+
 /home/faculty/urps/public_html/protected/modules/people/controllers/FindController.php(3): spl_autoload_call("Controller")
1 <?php
2 
3 class FindController extends Controller
4 {
5     /**
6      * Declares class-based actions.
7      */
8     public function actions()
#8
+
 /home/faculty/urps/public_html/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-18 22:03:02 Apache/2.4.29 (Ubuntu) Yii Framework/1.1.13