Well, validating file input fields doesn't work by default, so I was
going to this "manually".

However I'm still not able to access the data variable in the model:

if(empty($this->data))
{
  $this->render();
}

else
{
  if(!$this->Menu->validates($this->data))
  {
    $this->Menu->set('data', $this->data);

    $this->render();
  }

  else
  {
    // Upload file and move it to Webroot/files/menu

    Stuff;
  }
}

When I do a "debug($this->data)"; in beforeValidate() all I get is an
empty array. Any ideas?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to