title: Yii2 Basic - How I use common function functionality in yii2 action
body: <p>I am new to YII use yii2 basic.actually i want to know How to call an common function from  action of the same controller. Suppose I am in action A for send mail. I need to call send mail function B with three parameters its reurns some value. My controller name is Customer Controller. How will I perform this. Please say me a solution. Thanks </p>