add frontend collection
This commit is contained in:
26
common/components/AccountTotalWidget.php
Normal file
26
common/components/AccountTotalWidget.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace common\components;
|
||||
|
||||
use yii\base\Widget;
|
||||
|
||||
class AccountTotalWidget extends Widget{
|
||||
|
||||
public $totalHeading = 'Össesen';
|
||||
public $panelHeading = 'Össesen';
|
||||
public $panelType = 'panel-info';
|
||||
|
||||
public $statistic = ['total' => 0, 'accounts' => [] ];
|
||||
|
||||
|
||||
public $viewFile = '@common/views/common/_account_total';
|
||||
|
||||
public function init(){
|
||||
parent::init();
|
||||
|
||||
}
|
||||
|
||||
public function run(){
|
||||
echo $this->render($this->viewFile,[ 'model' => $this ]);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user