StatsBurner v2.3

This PHP class is a wrapper for the Feedburner Awareness API. It grabs your circulation hits, views, stats and averages over a given period of time. Can be customized to grab data from certain dates, date ranges and discrete dates.

Blog entries with the tag "Controller"

While working on this app, I thought I would give the not so used method, setAction() a spin. If you are unfamiliar with setAction(), its a method that will internally forward one action to another. This is incredibly useful as it allows you to switch actions without having to do another HTTP request, nor having to reload all the controller and related objects; could be a huge saver on overhead. Continue reading...
The Controller and HTTP response are now working correctly, so it is time to display the response message to the client. We will achieve this by utilizing jQuery to output our JSON. The plan is to show a success message if the JSON passed or display a list of errors if it has failed. Continue reading...
Now that you have setup the Javascript and view to properly fire off an AJAX call, it's time to process the call within the Controller. We will build and write all the required logic to properly handle an AJAX call and return the response. Continue reading...
When I first started using CakePHP, I never used the Session->setFlash() method to display success or error messages. I never used it because I was under the impression that flash messages were automatically redirected if debug is turned off, but this only applies to the controllers flash(). So I started to use and understand setFlash(), and here are my findings. Continue reading...