Friday, September 2, 2011

Re: Using GET not POST returns empty $this->data

With GET request your data goes to $this->params['url']

On 31 авг, 21:11, Thomas <thomas...@gmail.com> wrote:
> I am trying to make a very simple link up between an android app
> (appinventor) and a standard cake app.  I have created the blog tutorial and
> it all works great.  I can make my app link to another web site with a URL
> and return XML (a simple API request) so I know it works, I just want to do
> the same with cake.
>
> I can't work out the syntax of a the POST to send with appinventor, but I
> can make the 'add' form use GET with
>
> *echo $this->Form->create('Post', array('type' => 'get'));*
>
> When I use this form I see the correct parameters in the URL, but *
> $this->data* appears empty and nothing is saved - the add page just comes
> straight back.
>
> I have scoured this group, the Bakery and the internet for an hour now and
> am demoralised. I know it must be something simple in the *
> posts_controller.php* but I can't find it.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

No comments: