I made a module in core/modules - Folder called Hub and then in Hub.php do something like:
<?php
class Hub extends CodonModule
{
public function index()
{
// Do nothing? Show a list of all hubs perhaps?
}
public function view($hub)
{
if(!$hub){
$this->set('message', 'No hub code specified!');
$this->render('core_error.tpl');
return;
}
$this->set('pilots', PilotData::findPilots(array('p.hub'=>$hub)));
$this->set('hub', OperationsData::retrieveAirportInfo($hub));
$this->render('hub.tpl');
}
}
?>
And then make a template in your skin folder called hub.tpl which you put the codes for HubStats in and so on.
Then you link to site.com/index.php/hub/view/KIND etc