In Yii, a component is an independent code written for a particular task which can be used by summoning controllers. An example of elements is an email component.

BY Best Interview Question ON 31 Jan 2019