Hello
I am trying to add that the last 10 routes flown are shown, I have not been lucky thanks for the help this is the Module / Pireps code
public function routesmap($pilotID,$limit='') {
if (!Auth::LoggedIn()) {
$this->set('message', '<div class="alert alert-danger alert-dismissable">You must be logged in to access this feature!</div>');
$this->render('core_error.tpl');
return;
}
$this->title = 'My Flight Map';
$pireps = PIREPData::findPIREPS(array(
'p.pilotid' => Auth::$pilot->pilotid,$limit
));
if (!$pireps) {
$this->set('message', '<div class="alert alert-danger alert-dismissable"><center>No hay vuelos archivados todavia</center></div>');
$this->render('core_error.tpl');
return;
}
$this->set('allschedules', $pireps); #deprecated
$this->set('pirep_pilots', $pireps);
$this->render('flown_routes_map.php');
}
with this code all
<?php MainController::Run('Pireps', 'routesmap'); ?>
thanks.