1k views
Call the slugify/urlize function from Doctrine
If you are using Doctrine, it is possible to call its own function to slugify strings. It is located in the Doctrine_Inflector class:
PHP
- $sluggedString = Doctrine_Inflector::urlize(string);
This is the function Doctrine calls when you set the Sluggable behavior to a class.
Submitted by miguelSantirso 10 months ago — last modified less than a minute ago