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 followers
1 154 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Networking
Developed by: Davidhhuan
Created on: Oct 30, 2010
Last updated: 13 years ago

Downloads

show all

Related Extensions