Does the Yii framework contain a function that can make a string usable in a URL or filename ?
For example: Health+%26+Safety+franchises = health-safety-franchises
So something similar to: https://docs.djangoproject.com/en/dev/ref/templates/builtins/#slugify
slugify in Django Converts to lowercase, removes non-word characters (alphanumerics and underscores) and converts spaces to hyphens. Also strips leading and trailing whitespace.
Following are the functions in PHP to carry out same tasks.
You need to define a function in some controller TO use it in Yii