Simple hitcount behavior for CakePHP – lecterror
A nice blog post from dsi.vozibrale.com on how to create a CakePHP behavior. This helps build on some of the missing points in the CakePHP manual. This post include also includes good references.
Simple hitcount behavior for CakePHP
Posted in CakePHP on 07.04.2008.
While developing Neutrino, I’ve decided to implement a simple hitcount behavior. So here it is.
For those few who don’t know, behaviors are “extensions” for models. In other words, they are reusable model logic. They help you keep your code DRY, easily maintainable and portable. In this case, we’re creating a hit counter behavior, hitcount for short.
This entry was posted on Thursday, November 26th, 2009 at 6:23 pm and is filed under cakePHP. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


