public function bids() { if (!Auth::LoggedIn()) { return; } $this->set('bids', SchedulesData::GetBids(Auth::$userinfo->pilotid)); $this->render('schedule_bids.tpl'); }