Thank you very much for your help, Scott.

Well I've finally managed to get it to work by placing things like
this:

    function add($region_id = null)
    {

        if (!empty($this->data))
        {
            $this->data['Country']['region_id'] = $region_id;
            if ($this->Country->save($this->data))
            {
                $this->flash('El país se ha añadido a la
lista.', '/countries/index/' . $region_id, 2);
            }
        }
        else
        {
            $this->set('region_id', $region_id);
        }
    }

And I'm now able to drop the hidden field by appending $region_id to
the form's "action" url. Apparently everything else didn't work for
me.
It's gonna be interesting if I keep on having more problems like
these...


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