add indexes, add messagedetsta
This commit is contained in:
27
backend/components/AdminCustomerTabWidget.php
Normal file
27
backend/components/AdminCustomerTabWidget.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
namespace backend\components;
|
||||
|
||||
use yii\base\Widget;
|
||||
|
||||
class AdminCustomerTabWidget extends Widget{
|
||||
|
||||
public $customer;
|
||||
public $card;
|
||||
public $title;
|
||||
|
||||
|
||||
|
||||
public $viewFile = '//common/_customer_tab';
|
||||
|
||||
public function init(){
|
||||
parent::init();
|
||||
$this->card = $this->customer->card;
|
||||
}
|
||||
|
||||
|
||||
public function run(){
|
||||
echo $this->render($this->viewFile,[ 'card' => $this->card, 'customer' => $this->customer ,'title' => $this->title ]);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user