Rename controllers
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<h2><?= t('Add a new link') ?></h2>
|
||||
</div>
|
||||
|
||||
<form action="<?= $this->url->href('link', 'save') ?>" method="post" autocomplete="off">
|
||||
<form action="<?= $this->url->href('LinkController', 'save') ?>" method="post" autocomplete="off">
|
||||
|
||||
<?= $this->form->csrf() ?>
|
||||
|
||||
@@ -15,4 +15,4 @@
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<h2><?= t('Link modification') ?></h2>
|
||||
</div>
|
||||
|
||||
<form action="<?= $this->url->href('link', 'update', array('link_id' => $link['id'])) ?>" method="post" autocomplete="off">
|
||||
<form action="<?= $this->url->href('LinkController', 'update', array('link_id' => $link['id'])) ?>" method="post" autocomplete="off">
|
||||
|
||||
<?= $this->form->csrf() ?>
|
||||
<?= $this->form->hidden('id', $values) ?>
|
||||
@@ -18,4 +18,4 @@
|
||||
<?= t('or') ?>
|
||||
<?= $this->url->link(t('cancel'), 'link', 'index') ?>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<?= $this->url->link(t('Edit'), 'link', 'edit', array('link_id' => $link['id'])) ?>
|
||||
<?= $this->url->link(t('Edit'), 'LinkController', 'edit', array('link_id' => $link['id'])) ?>
|
||||
<?= t('or') ?>
|
||||
<?= $this->url->link(t('Remove'), 'link', 'confirm', array('link_id' => $link['id'])) ?>
|
||||
<?= $this->url->link(t('Remove'), 'LinkController', 'confirm', array('link_id' => $link['id'])) ?>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -30,4 +30,4 @@
|
||||
<?= t('There is no link.') ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?= $this->render('link/create', array('values' => $values, 'errors' => $errors)) ?>
|
||||
<?= $this->render('link/create', array('values' => $values, 'errors' => $errors)) ?>
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
</p>
|
||||
|
||||
<div class="form-actions">
|
||||
<?= $this->url->link(t('Yes'), 'link', 'remove', array('link_id' => $link['id']), true, 'btn btn-red') ?>
|
||||
<?= $this->url->link(t('Yes'), 'LinkController', 'remove', array('link_id' => $link['id']), true, 'btn btn-red') ?>
|
||||
<?= t('or') ?>
|
||||
<?= $this->url->link(t('cancel'), 'link', 'index') ?>
|
||||
<?= $this->url->link(t('cancel'), 'LinkController', 'index') ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user