You need to put the results of the user->login action into your layout.
There are numerous approaches, all thoroughly covered in this group, involving requestAction, so I'll just outline them, starting with 'quick and dirty': - call requestAction directly from your layout - make sure the output of user->login is always available to the layout, perhaps by setting it in all controllers via AppController- >beforeFilter, or somesuch - BEST PRACTICE: See the Bakery article related to wrapping calls to requestAction in an Element. On Jan 1, 1:05 am, matches <[EMAIL PROTECTED]> wrote: > Hello all, > > I want to include my login controller in my header so that it is > accessible on all pages. I have followed the IBM tutorial to get my > login controller working. If I take the code straight out of the views/ > users/login.thtml file then I get an error on every page except for > the login view. Which I expected but I still can't figure out how to > get this to work. > > Hope I am being clear enough. Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
