4k visitas
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.
Enviado por miguelSantirso hace over 2 years — modificado por última vez hace less than a minute