SluggableBehavior -- Help me!

Hello Everyone!

I have 2 fields title and slug. I wan’t make helper trigger check data before pass to Slug behavior.

What’s “helper trigger check”?

I sorry, I mean:

User -> Submit data -> Check

If empty slug

return title;


return slug;

-----------And because in SluggableBehavior of Yii2 not working fine with Unicode Vietnamese. Example: Đã Kiểm Tra -> a-kiem-tra. Miss word Đ.

Yes, it’s not working properly with all Polish characters as well.

I’m using instead - try this one.