¿Eres nuevo? ¡Lee el FAQ y ponte al día!
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
  1. $sluggedString = Doctrine_Inflector::urlize(string);
  2.  

­

This is the function Doctrine calls when you set the Sluggable behavior to a class.

Etiquetas: PHP slugify strings Doctrine

Insertar: