PHP notice

Undefined variable: event

/home/gys6oxq5pvmz/public_html/protected/views/layouts/bootstrap-4-container-fluid-course-register.php(58)

46         print '</a>';
47     ?>
48       </button>
49     </div>
50 
51 
52     <?php
53         if( $flag_show_cmi_accred === TRUE )
54         {
55 
56             
57             $eventPrototypeAccreditationBody = EventPrototypeAccreditationBody::model()->findByAttributes( array(
58                 'event_prototype_id' => $event->event_prototype_id,
59                 'event_prototype_accreditation_body_state_id' => EventPrototypeAccreditationBodyState::STATE_ACTIVE,
60                 'accreditation_body_id' => AccreditationBody::CMI )
61             );
62             
63             if( $eventPrototypeAccreditationBody instanceOf EventPrototypeAccreditationBody )
64             {
65                 print '<div class="img-hover col-xl-6">';
66                 print '<button>';
67                 $this->renderPartial( '//course/v2/_cmi_accred', array() );
68                 print '</button>';
69                 print '</div>';
70             }

Stack Trace

#3
+
 /home/gys6oxq5pvmz/public_html/protected/controllers/CourseController.php(170): CController->render("//courseRegister/index", array("eventPrototype" => EventPrototype, "flag_show_cmi_accred" => true, "flag_show_asic_accred" => true))
165         $flag_show_asic_accred = (bool)Configuration::model()->findByAttributes( array( 'configuration_key' => 'flag_show_asic_accred' ), $criteria )->configuration_value;
166 
167         $this->render( '//courseRegister/' . $_GET[ 'page' ], array( 
168             'eventPrototype' => $eventPrototype,
169             'flag_show_cmi_accred' => $flag_show_cmi_accred,
170             'flag_show_asic_accred' => $flag_show_asic_accred ) 
171         );
172 
173     }
174 
175 }
#16
+
 /home/gys6oxq5pvmz/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-28 16:43:40 Apache Yii Framework/1.1.21