HELP! I am trying to save on my username_created field. But, could not.
username_created is not on my view.

I tried this on my controller.

if (!empty($this->data))
{
    $this->cleanUpFields();

    // Modifications on the database
    $LoggedUsername = $this->Session->read('User.handle');
    $this->Feature->username_created = $LoggedUsername;

    if ($this->Feature->save($this->data))
    {
        $this->Session->setFlash('Your new article has been saved.');
        $this->redirect(array('action'=>'index'), null, true);
    }
}

But, this syntax: $this->Feature->username_created = $LoggedUsername; before
save(), is not working.

How, could i add a username_field when saving on a controller?

-- 
Louie Miranda ([EMAIL PROTECTED])
http://www.axishift.com

Security Is A Series Of Well-Defined Steps
chmod -R 0 / ; and smile :)

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