add reception collection basics
This commit is contained in:
28
frontend/components/TransferTotalWidget.php
Normal file
28
frontend/components/TransferTotalWidget.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
namespace frontend\components;
|
||||
|
||||
use yii\base\Widget;
|
||||
|
||||
class TransferTotalWidget extends Widget{
|
||||
|
||||
public $options = [
|
||||
'totalHeading' => 'Összessen'
|
||||
];
|
||||
|
||||
|
||||
public $viewFile = '//common/_transfer_total';
|
||||
|
||||
public function init(){
|
||||
parent::init();
|
||||
|
||||
if ( !isset($this->options['totalHeading'] ) ){
|
||||
$this->options['totalHeading'] = 'Összesen';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function run(){
|
||||
echo $this->render($this->viewFile,[ 'options' => $this->options ]);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user