add default account to frontend
This commit is contained in:
22
frontend/components/ReceptionCustomerWidget.php
Normal file
22
frontend/components/ReceptionCustomerWidget.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
namespace frontend\components;
|
||||
|
||||
use yii\base\Widget;
|
||||
/**
|
||||
* This is the model class for table "customer".
|
||||
*
|
||||
* @property string $viewFile
|
||||
* @property common\models\ReceptionForm $model
|
||||
* */
|
||||
class ReceptionCustomerWidget extends Widget{
|
||||
|
||||
|
||||
public $viewFile = '//common/_reception_customer';
|
||||
public $model;
|
||||
|
||||
public function run(){
|
||||
echo $this->render($this->viewFile,[ 'model' => $this->model ]);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user