$this->getReponse()->setHeader('Content-type', $documentMIMEType);
in your action ($this is instance of sfActions)http://www.symfony-project.org/api/1_0/sfWebResponse#method_sethttpheader Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed, Apr 7, 2010 at 5:37 PM, kim <[email protected]> wrote: > thnanks this is indeed what i'm searching for but i was wondering how > i can set this headers > so that the user can select by himself where the file will be > downloaded > > greetings > > On 7 apr, 15:31, "Christopher Schnell" <[email protected]> wrote: > > You have to set the http headers. Unfortunately I don't have an example > at > > hand, but this should get you started. > > > > Don't forget to turn off layout. > > > > Regards, > > Christopher. > > > > -----Ursprüngliche Nachricht----- > > Von: [email protected] [mailto: > [email protected]] > > Im Auftrag von kim > > Gesendet: Mittwoch, 7. April 2010 12:57 > > An: symfony users > > Betreff: [symfony-users] save xml php > > > > hello, > > > > i have parsed a xml from a string with the simplexml_load_string() > > function > > but now i want to show a save file dialog so the user can download the > > xml file > > but how do i have to do this? > > > > thanks > > > > -- > > If you want to report a vulnerability issue on symfony, please send it to > > security at symfony-project.com > > > > You received this message because you are subscribed to the Google > > Groups "symfony users" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<symfony-users%[email protected]> > > For more options, visit this group athttp:// > groups.google.com/group/symfony-users?hl=en > > > > To unsubscribe, reply using "remove me" as the subject. > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<symfony-users%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
