Yii 1.1: rus2translit

RusToTranslite helper
1 follower

This helper is for russian-speaking users who needs to automatize generation routine SEF-urls for russian titles in urls.

It simply converts russian string with specified rules in a translited string.

Resources

Documentation

Requirements

  • Yii 1.0 or above

Installation

  • Extract the release file under protected/extensions
  • In Configuration file add import from "extensions":
    
    'import'=>array(
           ...
           'application.extensions.*',
    ),
    

Usage

See the following code example:

<code>
echo Translite::rusencode('моя новая транслитированная ссылка 1');
</code>
will generate "moya_novaya_translitirovannaya_ssylka_1"

Change Log

January 25, 2010

  • Initial release.

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads
  • Yii Version: 1.1
  • License: New BSD License
  • Developed by: someone
  • Category: Others
  • Votes: +2
  • Downloaded: 491 times
  • Created on: Jan 25, 2010
  • Last updated: Jan 25, 2010