transliterate-url this extension is used to make the url more clean, change the blank to dash, remove the unsafe symbols such as &%$#@

  1. Requirements
  2. Usage
  3. Resources

This extension is used to make the url more clean, change the blank to dash, change the un-ascii code to ascii, such as Œ to OE, À to A and so on. Remove the unsafe symbols such as &%$#@

Requirements

Yii 1.0 or above

Usage

Download the code, and locate it in protected/components

test in your controller,

echo UrlTransliterate::cleanString("我爱 中文!");

Resources

6 0
6
1 154
Yii Version: 1.1
License: BSD-2-Clause
Category: Networking
Developed by: Davidhhuan Davidhhuan
Created: Oct 30, 2010
Updated: 15 years ago

Downloads

show all

Related Extensions