On Dec 21, 2007 10:33 AM, carSign <[EMAIL PROTECTED]> wrote: > > Hi - > > So I am trying to include a small snippet of code in each page of my > site. Is there a way to do this without modifying each controller? > > For example - I want to log visitors to my site. Each page visited > would have some information put into the database. > > URL > User info > tiestamp > browser info > > Can I do this using the app_controller? Can it be done without the > need to modify all of my existing controllers? > If I include it in the app_controller do I name that action 'index'? > do I then create a app_model? >
Best spot for that, in my opinion, would be in a beforeFilter() method in app_controller. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---