add default account to frontend
This commit is contained in:
@@ -4,6 +4,7 @@ use yii\helpers\Html;
|
||||
use yii\widgets\ActiveForm;
|
||||
use frontend\components\HtmlHelper;
|
||||
use kartik\widgets\DatePicker;
|
||||
use common\models\Account;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $model common\models\Ticket */
|
||||
@@ -22,6 +23,9 @@ use kartik\widgets\DatePicker;
|
||||
$accountOptions = HtmlHelper::mkAccountOptions($accounts);
|
||||
$discountOptions = ['' => ''] + HtmlHelper::mkDiscountOptions($discounts, [ 'emptyOption' => true] );
|
||||
$ticketTypeOptions = HtmlHelper::mkTicketTypeOptions($ticketTypes);
|
||||
|
||||
// echo "default kassza: " . Account::readDefault();
|
||||
// echo " kassza: " . $model->id_account;
|
||||
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user