Friday, October 8, 2010

Re: Redirect to XML

I may be totally wrong, but my inclination would be to code it in
beforeFilter() in app_controller.php... set the layout, the response
type, and a flag in there

On Oct 8, 3:07 pm, Jonas <jonas.sand...@gmail.com> wrote:
> Hello,
>
> I am creating a mobile application interface and I'd like to call the
> regular webbaddresses but redirect the output to an XML view instead
> of a HTML one.
>
> Where do I add this functionality the simplest way? Do I just make a
> check in beforeFilter if it's coming in from a mobile device or is
> there a better way?
>
> Thank you,
>
> Regards,
> Jonas

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate