Hi,
beside creation/modification date  i would like to store the
creating/modifing user too.
To have this functionallity avaible to all models i though appModel
beforeSave would be the right place to hook in.
But since accessing the session (which contains the currents user's id)
from within a model is'nt good MVC, i wonder what would be a good way
to make the user id available to every model. Setting it manually
within every controller (e.g.prior to mymodel->save) isnt an option.
Any ideas?
Cheers,
Nikolas


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