frontend/controllers/UserController.php
/**
     * Display list of devices
     * @return mixed
     */
Display list of devices
@return mixed
Display list of devices @return mixed
public function actionDevices()
    {
        $User = $this->User;
        $searchModel = new UserNodeSearch();
        $dataProvider = $searchModel->search(['user_id' => $User->user_id]);
        return $this->render('devices', [
            'User'         => $User,
            'Server'       => Servers::getSignal(),
            'site_token'   => NodeApi::site_token_key(),
            'dataProvider' => $dataProvider,
        ]);
    }
public function actionDevices ( ) { $ User = $ this -> User ; $ searchModel = new UserNodeSearch ( ) ; $ dataProvider = $ searchModel -> search ( [ 'user_id' => $ User -> user_id ] ) ; return $ this -> render ( 'devices' , [ 'User' => $ User , 'Server' => Servers :: getSignal ( ) , 'site_token' => NodeApi :: site_token_key ( ) , 'dataProvider' => $ dataProvider , ] ) ; }
Display list of devices
 @return mixed
Display list of devices @return mixed
/** @var \common\models\Users $User */ //'allNodes'     => $searchModel->getAll(),