Monday, November 29, 2010

Configure before components initialize - startupProcess() or constructClasses() a good idea?

Hi there,

i've recently stepped into a problem with Session component
configuration, i needed to be able to set the Session path and save
path for a specific plugin, it's a separate app in the app and runs
under a different user, and so i needed to separate the sessions,
otherwise it would always throw permission errors when trying to
access/delete session temp files, etc.

To make a long story short, components may cause/require the session
to start on initialization (popular ex. DebugKit), and so one needs to
do the configuration earlier. Am i right that the only options are
constructClasses() and startupProcess()? I couldn't find any other
possible point to hook in, though i'm wondering if this is really the
right way to do it?

Regards

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: