Hi everybody,
I use Acl and Auth and have the problem that in a certain controller I
need my userid for saving it with the other data.
So what I do is
$this->Katalogplanung->save(array('Katalogplanung' => array(
'auspraegungplanung_id' => $auspraegungplanung_id,
'zielgebiet_id' => $zgIdTyp[1],
'sortierung' => $i,
'zeit' => "$zeitstempel",
'user_id' => $this->Auth->user('id')
)
)
);
When I save my user_id isn't filled in:
Query: INSERT INTO `zielgebiets`
(`fertig`,`zielgebietmaster_id`,`name`,`inuse`,`user_id`,`zeit`,`saison_
id`,`mandant_id`,`sprache_id`) VALUES
(0,33,'Mallorca',0,NULL,'2008-11-21 15:02:53',1,1,1)
Any idea what is wrong? I thought I can call $this->Auth->user('id')
from any controller? The function worked well before I integrated Auth.
Then I used my Session which had the userid.
Thank you for any hints!
Anja
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---