public function executeAjaxAirport(sfWebRequest $request) { $airports = AirportPeer::getByWingId($request->getParameter('wing_id')); $html = '<select class="text narrow">'; foreach ($airports as $airport) { $html .= '<option value="' . $airport->getId() . '">' . $airport->getIdent() . '</option>'; } $html .= '</select>'; return $this->renderText($html); }