Use RequestHandler component: http://book.cakephp.org/view/174/Request-Handling

On Oct 22, 3:42 pm, Paulos23 <[email protected]> wrote:
> Hi people,
> I am at the end of construction of my web application and i want to
> build a smart way to handle response type(e.g XML,JSON etc).My app
> consist of many services Timezone Service,Weather Service and so
> on,which they manipulate data in XML or JSON.Now i want to reuse code
> and not building 2 types of controllers,one for each type of data,so i
> decide to build a Component.My idea is to build an absract class
> "ResponseParser" for general types of data,and then using subclasses
> with inheritance to parse tha particular data type e.g
> XMLParser,JSONParser.
> My question is if it is possible to  put all this code in one file and
> if it's not what can i do to make this work?
>
> Any help would be so helpful guyz!
>
> Thank you in advance,Paulos.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to