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