session component returns null in appcontroller __construct

2006-09-26 Thread [EMAIL PROTECTED]
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

Re: session component returns null in appcontroller __construct

2006-09-26 Thread AD7six
use the beforeFilter, not the constructor for such functionality. HTH, AD7six --~--~-~--~~~---~--~~ 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