Yii – Data Access Objects
To execute an SQL query, you should follow these steps β Create an yii\db\Command with an SQL query.Bind parameters (not required)Execute the command. Step 1 β Create a function called actionTestDb in the SiteController. public function…