PHP warning

Declaration of Controller::beforeRender() should be compatible with CController::beforeRender($view)

/protected/components/Controller.php(7)

01 <?php
02 
03 /**
04  * Controller is the customized base controller class.
05  * All controller classes for this application should extend from this base class.
06  */
07 class Controller extends CController
08 {
09 
10   /**
11    * @var string the default layout for the controller view. Defaults to '//layouts/column1',
12    * meaning using a single column layout. See 'protected/views/layouts/column1.php'.
13    */
14   public $layout = '//layouts/column2';
15   public $settings;
16   public $menu = array();
17   public $menuF = array();
18   public $menuT = array();
19   public $full_menu = array();

Stack Trace

#2
+
 /protected/controllers/TrainingController.php(3): spl_autoload_call("Controller")
1 <?php
2 
3 class TrainingController extends Controller
4 {
5 
6   /**
7    * @var string the default layout for the views. Defaults to '//layouts/column2', meaning
8    * using two-column layout. See 'protected/views/layouts/column2.php'.
#7
+
 /index.php(14): CApplication->run()
09 defined('YII_DEBUG') or define('YII_DEBUG',true);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2024-03-28 18:14:35 Apache Yii Framework/1.1.14