public function executeAjaxContactsXLM(sfWebRequest $request) { $IDS = $request->getParameter('IDS'); return $this->renderText(AgendatelefonicaPeer::getAllPhones($IDS)); /* $xml_file = "tmp.xml"; file_put_contents($xml_file, AgendatelefonicaPeer::getAllPhones($IDS)); $response = sfContext::getInstance()->getResponse(); $response->setContentType('text/plain'); $response->setHttpHeader('Content-Disposition', 'attachment; filename="contactes.xml'); $response->setHttpHeader('Content-Length', filesize($xml_file)); $response->setContent(file_get_contents($xml_file, false)); $response->sendHttpHeaders(); $response->sendContent(); return $this->renderText();*/ }