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