DetailController.php 471 Bytes
<?php

namespace frontend\controllers;

use common\models\Details;
use yii\data\ArrayDataProvider;
use yii\web\Controller;

class DetailController extends Controller {

    public function actionIndex()
    {

        return $this->render('index');
    }

    public function actionGetDetailsForItem()
    {

        $data = (new Details)->getTehdocData('1204403');


        return $this->renderPartial('details_view',[
            'data' => $data

        ]);
    }


}