user auto disable word listening
improve card creation mobileapi - add ticket usage count
This commit is contained in:
@@ -1,27 +1,36 @@
|
||||
<?php
|
||||
namespace frontend\components;
|
||||
|
||||
use common\models\User;
|
||||
use yii\base\Widget;
|
||||
|
||||
class ReceptionWidget extends Widget{
|
||||
|
||||
|
||||
public $form;
|
||||
|
||||
|
||||
public $number;
|
||||
public $route;
|
||||
|
||||
|
||||
|
||||
|
||||
public $viewFile = '//common/_reception';
|
||||
|
||||
|
||||
/**
|
||||
* @var User
|
||||
*/
|
||||
public $user ;
|
||||
|
||||
public function init(){
|
||||
parent::init();
|
||||
|
||||
$this->user = User::findOne(\Yii::$app->user->id);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public function run(){
|
||||
echo $this->render($this->viewFile,[ 'model' => $this->form ]);
|
||||
|
||||
echo $this->render($this->viewFile,[ 'model' => $this->form,
|
||||
"user_key_listener_enabled" => $this->user->key_listener_enabled ]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user