Difference between behaviors() attachBehaviors()

Hi!

I’m still discovering yii, and i’m amazed by all the possibilities yii it offers!

I don’t understand very well the difference between defining the method “behaviors()” in my controller or call the method “attachBehaviors()”

If somebody could help me it would be very helpfull!

Raf