mariano/syrup — Issue #6: Why not use Inflector::slug()?
Author: mtnorthrop
Created: 2011-11-25 17:13:32+00:00
State: open

Hello Mariano,

I was just wondering, why did you create your own character replacement method using chr() in your Sluggable behavior instead of using CakePHP's Inflector::slug() method?

At first glance it seems to me to make more sense to use the built-in functionality, but maybe not. Are there any hidden pitfalls in Inflector::slug() that might not be immediately obvious? Or was it due to other reasons?

Many thanks,
Mark