Yii2 typograph behavior
The preferred way to install this extension is through Composer.
Either run composer require altynbek07/yii2-typograph:^0.1
or add "altynbek07/yii2-typograph": "^0.1"
to the require section of your composer.json
Attach the behavior in your model:
public function behaviors()
{
return [
'typograph' => [
'class' => 'altynbek07\yii2Typograph\Typograph',
'attributes' => 'text',
]
];
}
Typograph multiple attributes:
public function behaviors()
{
return [
'typograph' => [
...
'attributes' => ['text', 'name'],
...
]
];
}
Altynbek Kazezov, e-mail: altinbek__97@mail.ru