Re: CakePHP *native* webservices.

2006-11-29 Thread Christoph
The manual says that there needs to be an xml layout for this to work. This brings up several questions: how does the *layout* affect the view? I would think that there needs to be seperate view files for XML just as there are for the HTML. But that doesn't seem to be the case because the

Re: Re: CakePHP *native* webservices.

2006-11-29 Thread Samuel DeVore
here are the things I did to get it to work at a bare minimum for a REST style service make a rest.php file in components ?php class RestComponent extends Object { } ? make a rest.php file in views/helpers ?php class RestHelper extends Helper { } ? in views/layouts make a folder

Re: CakePHP *native* webservices.

2006-11-29 Thread Chris Hartjes
On 11/29/06, Christoph [EMAIL PROTECTED] wrote: So after all of that, I'm very curious to find out if anyone has gotten this to work using CakePHP *native* functionality, which it claims (erroneously I think, based on all my tests and attempts to get it working) to have. I decided to take

Re: Re: CakePHP *native* webservices.

2006-11-29 Thread Samuel DeVore
:) hey Chris one of us has better type faster to save the other some trouble ;) On 11/29/06, Chris Hartjes [EMAIL PROTECTED] wrote: On 11/29/06, Christoph [EMAIL PROTECTED] wrote: So after all of that, I'm very curious to find out if anyone has gotten this to work using CakePHP *native*

Re: Re: CakePHP *native* webservices.

2006-11-29 Thread Chris Hartjes
On 11/29/06, Samuel DeVore [EMAIL PROTECTED] wrote: :) hey Chris one of us has better type faster to save the other some trouble ;) Heh. You did show me what I was doing wrong (putting content into default.thtml instead of index.thtml) so I'll fix that up and post the whole damn thing to

Re: Re: Re: Re: CakePHP *native* webservices.

2006-11-29 Thread Samuel DeVore
Another thing I forgot to mention is that you can do stuff like this in the controller if ($this-params['webservices'] == 'Rest') { $this-set('order',$this-Order-read()); } else { $this-redirect('/orders/index'); } To have different effects after doing something as part of your

Re: Re: Re: Re: Re: Re: CakePHP *native* webservices.

2006-11-29 Thread Samuel DeVore
and the like would be http://blog.samdevore.com/archives/2006/11/29/quick-and-dirty-getting-your-cakephp-to-rest/ damn this cranky old fart needs more sleep... On 11/29/06, Samuel DeVore [EMAIL PROTECTED] wrote: Ok here is a start for posterity and I promise I will finish the bakery article

Re: Re: Re: Re: Re: CakePHP *native* webservices.

2006-11-29 Thread Samuel DeVore
Ok here is a start for posterity and I promise I will finish the bakery article soon. If anyone wants a short gig helping me with a couple of cake projects for a school district contact me off list Sam D On 11/29/06, Samuel DeVore [EMAIL PROTECTED] wrote: Another thing I forgot to mention is

Re: Re: Re: CakePHP *native* webservices.

2006-11-29 Thread Chris Hartjes
On 11/29/06, Samuel DeVore [EMAIL PROTECTED] wrote: My completely uneducated, uninformed guess is that you need to do the bits with the helpers and components because the webservices stuff was planned and built into 1.2 and back ported to 1.1 and some of the parts didn't come along for the

Re: Re: Re: Re: Re: Re: CakePHP *native* webservices.

2006-11-29 Thread Chris Hartjes
On 11/29/06, Samuel DeVore [EMAIL PROTECTED] wrote: and the like would be http://blog.samdevore.com/archives/2006/11/29/quick-and-dirty-getting-your-cakephp-to-rest/ Hah! Beat you to it. :) -- Chris Hartjes The greatest inefficiencies come from solving problems you will never have. --

Re: Re: Re: Re: Re: Re: Re: CakePHP *native* webservices.

2006-11-29 Thread Samuel DeVore
But I did get the first comment on your page ;) On 11/29/06, Chris Hartjes [EMAIL PROTECTED] wrote: On 11/29/06, Samuel DeVore [EMAIL PROTECTED] wrote: and the like would be http://blog.samdevore.com/archives/2006/11/29/quick-and-dirty-getting-your-cakephp-to-rest/ Hah! Beat you

Re: CakePHP *native* webservices.

2006-11-29 Thread Christoph
here are the things I did to get it to work at a bare minimum for a REST style service What's a REST style service? That's the basics of what I did, and heck it worked for me. I started on an article in the bakery but I am just swamped with work right now and can't seem to finish it.

Re: CakePHP *native* webservices.

2006-11-29 Thread Christoph
So, looks like I managed to get it working. I hope this helps people out who are trying to figure out how to use CakePHP's built-in web services. This helped me a great deal. Thank you very much. I just wonder why simple information like this is missing from the documentation... When I

Re: Re: CakePHP *native* webservices.

2006-11-29 Thread Samuel DeVore
http://en.wikipedia.org/wiki/Representational_State_Transfer http://www.xml.com/pub/at/34 http://www-128.ibm.com/developerworks/java/library/j-cb08016/index.html?ca=dgr-lnxw07Rest4RubyOnRails On 11/29/06, Christoph [EMAIL PROTECTED] wrote: here are the things I did to get it to work at a

RE: CakePHP *native* webservices.

2006-11-29 Thread Mariano Iglesias
PROTECTED] En nombre de Christoph Enviado el: MiƩrcoles, 29 de Noviembre de 2006 01:58 p.m. Para: Cake PHP Asunto: Re: CakePHP *native* webservices. This helped me a great deal. Thank you very much. I just wonder why simple information like this is missing from the documentation

RE: CakePHP *native* webservices.

2006-11-29 Thread Mariano Iglesias
nombre de Christoph Enviado el: MiƩrcoles, 29 de Noviembre de 2006 01:50 p.m. Para: Cake PHP Asunto: Re: CakePHP *native* webservices. What's a REST style service? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake