>From the controller do:
$this->returned_information = $this->Modelname->function($this->data);

Just take the data as an argument and parse the array.

This is the way I do it but, if there is an easier way, I am all eyes.

On May 9, 12:28 pm, Harro <[EMAIL PROTECTED]> wrote:
> Thanks for your reply, but I dont follow.
>
> I want to use the data submitted in the users_controller from, in the
> User model for custom validation.
> I was following this 
> ->http://snook.ca/archives/cakephp/cakephp_data_va_1/#c48338
>
> Thanks, Harro.
>
> On May 9, 8:21 pm, "Gonzalo Servat" <[EMAIL PROTECTED]> wrote:
>
> > On 5/9/07, Harro <[EMAIL PROTECTED]> wrote:
>
> > > I thought it would be possible to access form submited data using
> > > $this->data['Model']
>
> > > However I get the following error:
>
> > > Notice: Undefined index: User in E:\Server\htdocs\app\models\user.php
> > > on line 15
>
> > > Anyone have any ideas? Thanks, Harro
>
> > Depends... what method are you trying to access $this->data from? Some
> > methods (like save()) you can pass $this->data as an argument.
>
> > In other cases, you'll have to do $this->User->set($data); first.
>
> > Best regards,
> > Gonzalo.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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