Fala pessoal, tranquilidade? Vamos aprender hoje a utilizar os tão famosos behaviors do Yii2. Vamos criar juntos um behavior totalmente do zero e depois te mostrarei alguns behaviors que o Yii2 já traz por padrão no seu conjunto de ferramentas.
Guia de Behaviors:
https://www.yiiframework.com/doc/guide/2.0/en/concept-behaviors
Classe Behavior:
https://www.yiiframework.com/doc/api/2.0/yii-base-behavior
Blemeable Behavior:
https://www.yiiframework.com/doc/api/2.0/yii-behaviors-blameablebehavior
Sluggable Behavior:
https://www.yiiframework.com/doc/api/2.0/yii-behaviors-sluggablebehavior
Timestamp Behavior:
https://www.yiiframework.com/doc/api/2.0/yii-behaviors-timestampbehavior
Muito bom!!!!! Me ajudou muito!
Obrigado Gustavo, espero ter te ajudo a criar um behavior no Yii2 =)
Acabei de implementar mais um behavior!
Que massa hein ! Parece que você aprendeu, espero ter te ajudado !