add reception collection basics

This commit is contained in:
2015-11-03 17:27:14 +01:00
parent 33bf52df60
commit 931b83040b
12 changed files with 385 additions and 26 deletions

View 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 ]);
}
}