Pass uri query parameter

This commit is contained in:
Dennis Eichhorn 2017-02-08 19:29:11 +01:00
parent aafc8fd6d5
commit 1a50e8456c
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ echo $this->getData('nav')->render(); ?>
<div class="col-xs-12">
<section class="box wf-100">
<div class="inner">
<form id="drawForm" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/draw?csrf={$CSRF}'); ?>" method="POST">
<form id="drawForm" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/draw?{?}csrf={$CSRF}'); ?>" method="POST">
<input type="text" id="iTitle" name="title" class="wf-100"><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
</form>
</div>

View File

@ -40,7 +40,7 @@ echo $this->getData('nav')->render(); ?>
<td colspan="3"><?= $footerView->render(); ?>
<tbody>
<?php $count = 0; foreach($images as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/draw/single?id=' . $value->getId()); ?>
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/draw/single?{?}id=' . $value->getId()); ?>
<tr>
<td><a href="<?= $url; ?>"><?= $value->getMedia()->getName(); ?></a>
<td><a href="<?= $url; ?>"><?= $value->getMedia()->getCreatedBy(); ?></a>