Kyle
1
Hey guys, I have this hub module in my localhost and I haven’t done a thing to it yet, so I wanted to get it done.
How can I call for the pilots like for example. I want the Hub CYYZ to get all of the CYYZ pilots into the Hub Page Roster.
Any help would be great and I’ll give you reps… (Always!)
Thanks.
Tom
2
You can use the following:
PilotData::findPilots(array('p.hub'=>'CYYZ'))
1 Like
Kyle
3
Thanks Tom,
I think I have a idea how to write out the CYYZHub Module.
Thanks!
Kyle
4
Ok,
Now I’m not sure how to code this, I want the pilot data to get the number of how many pilots are in a per hub.
So here my code, for pilot data to hub…
<?php $pilots = PilotData::getAllPilotsByHub('CYYC'); ?>
Now I want it to get the numbers of how many pilots are in that hub? How would I go doing that?
Thanks, I’m still always giving you reps for helping me out here. Cheers!