2017 © Pedro PelΓ‘ez
 

yii2-extension yii2-sluggable-behavior

ПовСдСниС для транслитСрации ΠΊΠΈΡ€ΠΈΠ»ΠΈΡ†Ρ‹ Π² Π»Π°Ρ‚ΠΈΠ½ΠΈΡ†Ρƒ.

image

zabachok/yii2-sluggable-behavior

ПовСдСниС для транслитСрации ΠΊΠΈΡ€ΠΈΠ»ΠΈΡ†Ρ‹ Π² Π»Π°Ρ‚ΠΈΠ½ΠΈΡ†Ρƒ.

  • Friday, May 27, 2016
  • by zabachok
  • Repository
  • 1 Watchers
  • 1 Stars
  • 176 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 16 % Grown

The README.md

Sluggble behavior

ПовСдСниС для транслитСрации ΠΊΠΈΡ€ΠΈΠ»ΠΈΡ†Ρ‹ Π² Π»Π°Ρ‚ΠΈΠ½ΠΈΡ†Ρƒ., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist zabachok/yii2-sluggable-behavior "*"

or add, (*4)

"zabachok/yii2-sluggable-behavior": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

Behavior for transliterate russian text to latin., (*7)

Π˜ΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚ΡŒ Ρ‚Π°ΠΊ ΠΆΠ΅ ΠΊΠ°ΠΊ ΠΈ ΠΎΡ€ΠΈΠ³ΠΈΠ½Π°Π»ΡŒΠ½ΠΎΠ΅ ΠΏΠΎΠ²Π΅Π΄Π΅Π½ΠΈΠ΅. Класс унаслСдован ΠΎΡ‚ \yii\behaviors\SluggableBehavior просто ΠΏΠ΅Ρ€Π΅ΠΎΠΏΡ€Π΅Π΄Π΅Π»Π΅Π½ ΠΌΠ΅Ρ‚ΠΎΠ΄ generateSlug, (*8)

use zabachok\behaviors\SluggableBehavior;

public function behaviors()
{
     return [
         [
             'class' => SluggableBehavior::className(),
             'attribute' => 'title',
             // 'slugAttribute' => 'slug',
         ],
     ];
}

The Versions

27/05 2016

dev-master

9999999-dev

ПовСдСниС для транслитСрации ΠΊΠΈΡ€ΠΈΠ»ΠΈΡ†Ρ‹ Π² Π»Π°Ρ‚ΠΈΠ½ΠΈΡ†Ρƒ.

  Sources   Download

MIT

The Requires

 

extension yii2 translit behavor slugg

27/05 2016

0.0.1

0.0.1.0

ПовСдСниС для транслитСрации ΠΊΠΈΡ€ΠΈΠ»ΠΈΡ†Ρ‹ Π² Π»Π°Ρ‚ΠΈΠ½ΠΈΡ†Ρƒ.

  Sources   Download

MIT

The Requires

 

extension yii2 translit behavor slugg