I have a faily large project I'm working on and want some advice on how to impliment a little tracking.
The project is a "Coupon" project. Merchants buy coupons, there are several different view: Randomly generated front page, coupons selected by category, type, merchant, all kinds of stuff. My problem is that we need a way to track the "views" for a coupon. As of now I pull the data out. Fun through the data and sort the arrays and throw the arrays to the specific 'View'. In the view, it looks through the array for Coupon data (foreach) and then sends each one to an element to be displayed. This is because there are several pages in which coupons are displayed. My thought was to put in a quick $this->requestAction that sent the ID and run a quick function to update the database for each coupon that was displayed. As I've researched, I guess that the $this->requestAction can cause some performance issues. There is a possibility that a over 30-40 coupons could be displayed on a single page. Any advice on another solution for this? My initial though was to put the tracking code on the controller, but there is a possibility that I or another developer could miss putting the function call in before it was sent to the view. If it's in the element there is no way it will every be missed. Advice? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
