Yii::app()->db->createCommand() ,createcommand in yii2

Hi all,

i want to use Yii::app()->db->createCommand() in yii2 tell me what is the exact syntax for that…

my code is




$paidFees = Yii::app()->db->createCommand()

                ->select('*')

                ->from('fees_payment_transaction')

                ->where('fees_payment_student_id ='.$_REQUEST['id'])

                ->queryAll();






how to convert this yii code into yii2

suggest solution

thanks.

http://www.yiiframework.com/doc-2.0/guide-db-query-builder.html