Apr 18, 2009
Eventful – A CakePHP Event System
As promised in the comments of the most recent entry i created a repo for my event system. It’s currently under heavy development, yet ready to use. I don’t think the interface will change much from here on out. The installation is similar to the DebugKit. Put the “eventful” plugin into your plugins folder and add the Behavior or Component to your app. This will include all... read more
Jan 25, 2009
Fancy URLs with Inflector::slug
Motivated by my recent tweet i thought i share my method of replacing the old SluggableBehavior with core functions. Sometimes we have more than one model that uses slugs. For example: Tags, Posts, Categories. That’s why i add the following to AppModel which allows me to call it on any model. function slugify($text) { return low(Inflector::slug($text, '-')); } But because i am lazy i just use one of... read more

