PHP warning

Undefined variable $year

/home/3/s/stormkast/www/protected/views/site/calendarMap.php(51)

39 
40 
41 ?>
42 
43 
44 <header class="pageHeader">
45     <h2>Terminliste - Kart</h2>
46 </header>
47 
48 
49 <p>
50     <a href="<?php echo $this->createUrl("//site/calendar"); ?>">Vis kalender</a>
51     <a href="<?php echo $this->createUrl("//site/calendarList", array("year" => $year, "month" => $month, "date" => $date)); ?>">Vis agenda</a>
52     <b>Vis kart</b>
53 </p>
54 
55 
56 
57 <section class="calendar" style="display: inline-block; width: 90%; padding: 5px; margin: 5px;">
58 
59 
60     <div style="margin-bottom: 20px;">
61         <b>Vis:</b>
62 <?php
63    $this->renderPartial( "_whatSelect",  array( "fieldName" => "whatCheck" ) );

Stack Trace

#4
+
 /home/3/s/stormkast/www/protected/controllers/SiteController.php(416): CController->render("calendarMap", array())
411         }
412         if (isset($_GET["date"])) {
413             $params["date"] = $_GET["date"];
414         }
415 
416         $this->render('calendarMap', $params);
417     }
418 
419     public function actionShowLink() {
420         $this->render('link');
421     }
#12
+
 /home/3/s/stormkast/www/index.php(17): CApplication->run()
12          ini_set('post_max_size', '23M');
13         ini_set('upload_max_filesize', '23M');
14         
15 
16 require_once($yii);
17 Yii::createWebApplication($config)->run();
2024-03-28 17:08:12 Apache/2.4.41 Yii Framework/1.1.27