I haven't used 1.1 for a while, so I cant comment about
"params['form']". I can confirm that in1.2 you will find your post
data in $this->data

I would recommend you "bake" your application to get started in 1.2,
and then rely heavily on the api instead of the manual. Using bake,
you can see how to do all of the basic crud stuff, and then you can go
to the api for more info.

good luck

On May 17, 1:18 pm, "Siegfried Hirsch" <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> today I have read through the manual (1.1) about the $this->params['form']
> which holds all the POST information from a form. Right ?
>
> I am using 1.2 4798 and I have setup the following view:
>
> <?php
>     echo $form->create('Test', array('action' => '/tests/login',
> 'method'=>'post', 'type' => 'file'));
>     echo $form->input('filename', array('type' => 'file'));
>     echo $form->submit('upload');
>     echo $form->end();
> ?>
>
> But the $this->params['form'] is empty. Instead I get this in the controller
> when I do pr($this->params) in my tests_controller;
> Array
> (
>     [controller] => tests
>     [action] => login
>     [form] => Array
>         (
>         )
>
>     [data] => Array
>         (
>             [Test] => Array
>                 (
>                     [filename] => Array
>                         (
>                             [name] => ejabberd.txt
>                             [type] => text/plain
>                             [tmp_name] => C:\DevWeb\xampp\tmp\phpF3.tmp
>                             [error] => 0
>                             [size] => 107
>                         )
>
>                 )
>
>         )
>
>     [url] => Array
>         (
>             [url] => tests/login
>         )
>
>     [bare] => 0
>     [webservices] =>
>     [plugin] =>
> )
>
> Am I doing something wrong or did I missunderstood the docs or has it changed.
> I am a little bit confused.
>
> --
> Siegfried


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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