Cake 1.2 Session Write

2008-04-22 Thread Stefan

I developed a rather large amount of code on Cake 1.1. At the end of
the View, I wrote some data back to Session-write. I can't seem to
find the proper object to get to the Session from the View in Version
1.2. Any clues would be greatly appreciated.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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
-~--~~~~--~~--~--~---



Re: Cake 1.2 Session Write

2008-04-22 Thread Andreas

Hi Stefan,

I think it's not a good idea to write Session-data in the
viewsanyway:
In the SessionHelper write() overrides CakeSession:write() and
disables it, so copy the SessionHelper from /cake/libs/view/helpers/
session.php to app/view/helpers. Now edit the file and delete the
write() function (you could also edit the SessionHelper in /cake/libs
directly  but I personally never touch the files in /cake/libs ;-) )
Another solution is just to skip the SessionHelper and write to the
$_SESSION array directly.

I wouldn't recommend either.

(sorry for my english, I'm not used to it)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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
-~--~~~~--~~--~--~---