I've been playing with cake and tweaking the blog demo.  I want to add
data into a table that is available in the session rather than just
from the form.

Right now my add function looks like:

    function add()
    {
        if (!empty($this->data))
        {
            if ($this->Idea->save($this->data))
            {
                $this->flash('entry has been saved.','/ideas');
            }
        }
    }

In addition to the form data, I have a user_id I would also like to
insert, available in the session scope.

$this->Session->write('User_ID', $someone['id']);

How do I insert that user_id into the table?


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