add backend transfer list changes
This commit is contained in:
36
frontend/components/ReceptionWidget.php
Normal file
36
frontend/components/ReceptionWidget.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
namespace frontend\components;
|
||||
|
||||
use yii\base\Widget;
|
||||
|
||||
class ReceptionWidget extends Widget{
|
||||
|
||||
public $form;
|
||||
|
||||
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 ]);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user