Fix relative path

This commit is contained in:
Dennis Eichhorn 2019-02-11 17:24:35 +01:00
parent 39929096d0
commit 462d0efcec
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
<tr> <tr>
<td colspan="9"> <td colspan="9">
<tbody> <tbody>
<?php $count = 0; foreach ([] as $key => $value) : $count++; ?> <?php $count = 0; foreach ([] as $key => $value) : ++$count; ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>
<tr><td colspan="9" class="empty"><?= $this->getHtml('Empty', 0, 0); ?> <tr><td colspan="9" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>

View File

@ -34,7 +34,7 @@ echo $this->getData('nav')->render(); ?>
<tr> <tr>
<td colspan="5"> <td colspan="5">
<tbody> <tbody>
<?php $count = 0; foreach ($list as $key => $value) : $count++; <?php $count = 0; foreach ($list as $key => $value) : ++$count;
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/marketing/promotion/profile?{?}&id=' . $value->getId());?> $url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/marketing/promotion/profile?{?}&id=' . $value->getId());?>
<tr data-href="<?= $url; ?>"> <tr data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a> <td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>