PHP notice

Trying to get property of non-object

/home/youya/projects/youya/sites/uvic/protected/controllers/CompscheduleController.php(66)

54 
55         $this->render('index',array(
56             'model'=>$model,
57             'route' => $this->route,
58         ));    
59     }
60     
61     public function actionView($id)
62     {
63         $model = Schedule::model()->findByPk($id);
64         $this->breadcrumbs = array(
65             "大会情報" => array("compschedule/index"),
66             date("Y年m月d日",strtotime($model->datetime_from))." ".$model->title => array("compschedule/view","id" => $model->id),
67             );        
68         $model = Schedule::model()->findByPk($id);
69         
70         $this->render('view',array(
71                     'model' => $model,
72                     ));
73         
74     }
75 
76 
77 }

Stack Trace

#9
+
 /home/youya/projects/youya/sites/uvic/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-28 18:36:09 Apache/2.2.16 (Debian) Yii Framework/1.1.12