add default account to frontend
This commit is contained in:
@@ -10,26 +10,17 @@ class ReceptionWidget extends Widget{
|
||||
public $number;
|
||||
public $route;
|
||||
|
||||
public $customer;
|
||||
public $card;
|
||||
|
||||
public $tickets;
|
||||
|
||||
public $viewFile = '//common/_reception';
|
||||
|
||||
public function init(){
|
||||
parent::init();
|
||||
if ( isset($this->form)){
|
||||
$this->card = $this->form->card;
|
||||
$this->customer = $this->form->customer;
|
||||
$this->tickets = $this->form->tickets;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function run(){
|
||||
echo $this->render($this->viewFile,['card' => $this->card, 'customer' =>$this->customer, 'tickets' => $this->tickets ]);
|
||||
echo $this->render($this->viewFile,[ 'model' => $this->form ]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user