Using activerecord

Afternoon,

I appreciate the help i have had here already so thank you!

I want to use fields from my DB in my text.

I have a model called quote and a controller called profile with a page called view


   public function actionView($id)

    {

        return $this->render('view', [

            'model' => $this->findModel($id),

        ]);

    }



Once in "view" how do i reference the fields?

cheers




<?= $model->field ?>