~~~
<?php
namespace app\controllers;
use app\models\Test;
use yii\web\Controller;
class TestController extends Controller
{
public function actionA(){
$c = new Test();
$data = $c->find()->one();
return $this->render('a',array('data'=>$data));
}
}
~~~