add ticket original end and original price
add helper links to related object in admin
This commit is contained in:
@@ -13,4 +13,37 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
<p>This is the About page. You may modify the following file to customize its content:</p>
|
||||
|
||||
<code><?= __FILE__ ?></code>
|
||||
<p>
|
||||
|
||||
<?php
|
||||
|
||||
$dt = new DateTime();
|
||||
|
||||
$dt->setTimezone(new DateTimeZone('UTC'));
|
||||
|
||||
$dt->sub( new DateInterval( 'P2D') );
|
||||
|
||||
|
||||
echo \common\components\DateUtil::formatUtc($dt);
|
||||
|
||||
echo " - ";
|
||||
|
||||
$ticketType = new \common\models\TicketType();
|
||||
$ticketType->time_unit_type = \common\models\TicketType::TIME_UNIT_DAY;
|
||||
$ticketType->time_unit_count = 3;
|
||||
|
||||
$dt2 = \common\components\Helper::getTicketExpirationDate($dt, $ticketType);
|
||||
echo \common\components\DateUtil::formatUtc($dt2);
|
||||
|
||||
// $dt2 = \common\components\Helper::getTicketExpirationDate($dt, $ticketType);
|
||||
// echo \common\components\DateUtil::formatUtc($dt2);
|
||||
|
||||
|
||||
// $dt = \common\components\DateUtil::addMonth($dt,1);
|
||||
// echo \common\components\DateUtil::formatUtc($dt);
|
||||
// $dt = \common\components\DateUtil::addMonth($dt,1);
|
||||
// echo \common\components\DateUtil::formatUtc($dt);
|
||||
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user