Hi, I want to add a general session checking mechanism that is applicable for all the controllers. I feel that the code should be in /app/AppController otherwise, it would be a copy-paste for 20-odd controllers.
I tried this: class AppController extends Controller { function __construct() { parent::__construct(); if ($this->Session->check('User')) { //<----- bugs out here //some logic } } } I tried extended the AppController to something like MyAppController. It is also not working. The problem is that Session (and other) components were not initialized or not available. What is the work around for this? Thanks R --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---