Tuesday, September 4, 2012

My answer to "Lower case Slug change"

This is my answer to a Question on Support site for LampCMS project


You can do that. Generally I would recommend to always use mb_strtolower instead of strtolower. In this particular case it ok to use strtolower simply because url slugs are converted to ASCII chars. This whole deal with converting slug to ASCII is probably a bad idea, and I will change it in the future.

Anyways, it's just better to use mb_strtolower when developing Lampcms sine all data is stored in utf-8

No comments:

Post a Comment