This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$heute = \date("Y-m-d H:i:s"); | |
$datetime1 = date_create($date); | |
$datetime2 = date_create($heute); | |
$interval = date_diff($datetime1, $datetime2); | |
return $interval->format('%R%a Tage'); | |
$heute = date("Y-m-d H:i:s"); | |
$dteStart = new DateTime($heute); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### View ##### | |
<div class="row"> | |
<div class="col-lg-1"> | |
<i class="like fa fa-fw fa-heart" data-warrior= <?= $model->id ?>></i> | |
</div> | |
<div class="col-lg-1"> | |
<div id=<?= $model->id ?>> <?= $model->like ?> </div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?= $form->field($model, 'IDProdukt')->dropDownList(ArrayHelper::map(TblProdukte::find()->all(), 'ID', 'Produkt'), | |
['prompt' => '-Produkt wählen-', | |
'onchange' => ' | |
$.get( "index.php?r=buchung/getprice&id="+$(this).val(), function( data ) { | |
$( "#tblbuchung-preis" ).val( data ); | |
}); | |
']); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?= GridView::widget([ | |
'dataProvider' => $dataProvider, | |
'filterModel' => $searchModel, | |
'columns' => [ | |
['class' => 'yii\grid\SerialColumn'], | |
[ | |
'label'=>'Image', | |
'format'=>'raw', | |
'value' => function($data){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
'attribute'=>'Datum', | |
'label'=>'Termin', | |
/*'format'=>'date',//date,datetime, time*/ | |
'format' => ['date', 'php:d.m.Y'], | |
'headerOptions' => ['width' => '130'], | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function successCallback($client) | |
{ | |
$attributes = $client->getUserAttributes(); | |
if (isset($attributes) && isset($attributes['email'])) { | |
$login = new LoginForm(); | |
$login->username = $attributes['email']; | |
$login->password = $attributes['email']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
['class' => 'yii\grid\ActionColumn', | |
'template' => '{info}{view}', | |
'buttons' => [ | |
'info' => function ($url, $model) { | |
return Html::a('<span class="glyphicon glyphicon-envelope"></span>', $url, [ | |
'title' => Yii::t('app', 'Antworten'), | |
]); | |
} | |
], | |
'urlCreator' => function ($action, $model, $key, $index) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function successCallback($client) | |
{ | |
$attributes = $client->getUserAttributes(); | |
if (isset($attributes)) { | |
$login = new LoginForm(); | |
$login->username = $attributes['contact/email']; | |
$login->password = $attributes['contact/email']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $this->registerMetaTag(['name' => $model->skill, 'content' => $model->beschreibung]); ?> |
NewerOlder