/** * Deletes a waypoint * * @param string $id */ public function deleteAction($id) { $waypoint = Waypoints::findFirstByid($id); if (!$waypoint) { $this->flash->error("waypoint was not found"); return $this->dispatcher->forward(array("controller" => "waypoints", "action" => "index")); } if (!$waypoint->delete()) { foreach ($waypoint->getMessages() as $message) { $this->flash->error($message); } return $this->dispatcher->forward(array("controller" => "waypoints", "action" => "search")); } $this->flash->success("waypoint was deleted successfully"); return $this->dispatcher->forward(array("controller" => "waypoints", "action" => "index")); }
, Abbrev:<?php echo "\"" . $rts->Abbrev() . "\""; ?> , City:<?php echo "\"" . $rts->City() . "\""; ?> , UnColor:<?php echo "\"" . $rts->SysColorUnclinched() . "\""; ?> , ClColor:<?php echo "\"" . $rts->SysColor() . "\""; ?> , <?php $wpts = new Waypoints($region, $rts->RouteNum()); ?> //EDB - point latitudes lat:[<?php for ($j = 0; $j < $wpts->Size(); $j++) { $wpts->getRow($j); echo $wpts->Latitude(); if ($j + 1 < $wpts->Size()) { echo ","; } } ?> ], //EDB - point longitudes lon:[<?php