urlFor example

<?php foreach ($systemCheckResultsWritePermissions as $systemCheckResult): ?> <?php $class = ($systemCheckResult['result']) ? 'success' : 'error'; ?> <tr class="<?= $class; ?>"> <td><?= $systemCheckResult['name']; ?></td> </tr> <?php endforeach; ?> </tbody> </table> <form action="<?= $app->urlFor('checks'); ?>" method="get"> <div class="actions clearfix"> <a href="<?= $app->urlFor('welcome'); ?>" class="btn btn-default btn-arrow-left"><?= $language['back']; ?></a> <button type="submit" class="btn btn-primary btn-arrow-right is--right"><?= $language['forward']; ?></button> </div> </form> <?php $app->render('_footer.php'); ?>
<?php foreach ($cleanupList as $cleanupEntry): ?> <tr> <td <?php if ($error) {
    echo 'class="error"';
} ?>><?= $cleanupEntry; ?></td> </tr> <?php endforeach; ?> </tbody> </table> <form name="cleanupForm" action="<?= $app->urlFor('cleanup'); ?>" method="post"> <!-- http://support.microsoft.com/kb/2977636 --> <input type="hidden" name="ie11-dummy-payload" value="some-payload"/> <div class="actions clearfix"> <div class="fileCounterContainer is--left"> <div class="counter">0</div> <div class="description"><?= $language['deleted_files']; ?></div> </div> <div class="clearCacheSpinner is--right"> <i class="loading-indicator"></i> </div> <input type="button" class="btn btn-primary btn-arrow-right is--right startCleanUpProcess" data-clearCacheUrl="
$result = false;
                $hasErrors = true;
            }

            if ($deleteDirecory) {
                $results[$directory] = $result;
            }
        }

        if (!$hasErrors && $this->app->request()->get('force') !== '1') {
            // No errors, skip page except if force parameter is set             $this->app->redirect($this->app->urlFor('dbmigration'));
        }

        $isSkippableCheck = $this->app->config('skippable.check');
        if ($isSkippableCheck && $this->app->request()->get('force') !== '1') {
            // No errors, skip page except if force parameter is set             $this->app->redirect($this->app->urlFor('dbmigration'));
        }

        $this->app->render('checks.php', [
            'systemCheckResultsWritePermissions' => $systemCheckPathResults,
            'filesToDelete' => $results,
            
</div> <?php endif; ?> <p> <?= $t->t('database-configuration_info'); ?> </p> <form action="<?= $menuHelper->getCurrentUrl(); ?>" method="post" data-ajaxDatabaseSelection="true" data-url="<?= $app->urlFor('database'); ?>"> <p> <label for="c_database_host"><?= $t->t('database-configuration_field_host'); ?></label> <input type="text" value="<?= isset($parameters['c_database_host']) ? $parameters['c_database_host'] : 'localhost'; ?>" name="c_database_host" id="c_database_host" required="required" /> </p> <p> <label for="c_database_user"><?= $t->t('database-configuration_field_user'); ?></label> <input type="text" value="<?= isset($parameters['c_database_user']) ? $parameters['c_database_user'] : ''; ?>" name="c_database_user" id="c_database_user" required="required" /> </p> <p> <label for="c_database_password">
$ipCheckEnabled = (bool) $app->config('check.ip');
    if ($ipCheckEnabled && !Utils::isAllowed($clientIp)) {
        $app->view()->setData('filePath', UPDATE_PATH . '/allowed_ip.txt');

        $app->render('noaccess.php');
        $app->response()->status(403);
        $app->stop();
    }

    // Redirect to "done" page if file cleanup was done     if (false && isset($_SESSION['CLEANUP_DONE']) && $app->router()->getCurrentRoute()->getName() !== 'done') {
        $url = $app->urlFor('done');
        $app->response()->redirect($url);
    } elseif (isset($_SESSION['DB_DONE']) && !isset($_SESSION['CLEANUP_DONE']) && $app->router()->getCurrentRoute()->getName() !== 'cleanup') {
        $url = $app->urlFor('cleanup');
        $app->response()->redirect($url);
    }
});

$app->error(function DException $e) use ($app) {
    if (!$app->request()->isAjax()) {
        throw $e;
    }

    
<?php foreach ($plugins as $plugin): ?> <tr> <td><?= $plugin['plugin_name']; ?></td> <td><?= $plugin['in_store']; ?></td> <td><?= $plugin['compatible']; ?></td> </tr> <?php endforeach; ?> </tbody> </table> <form action="<?= $app->urlFor('dbmigration'); ?>" method="get"> <div class="actions clearfix"> <a href="<?= $app->urlFor('checks'); ?>" class="btn btn-default btn-arrow-left"><?= $language['back']; ?></a> <button type="submit" class="btn btn-primary btn-arrow-right is--right"><?= $language['forward']; ?></button> </div> </form> <?php $app->render('_footer.php'); ?>
<?= $language['done_info']; ?> </div> <?php if ($changedTheme): ?> <div class="alert alert-warning"> <?= $language['done_template_changed']; ?> </div> <?php endif; ?> <div class="actions clearfix"> <a class="btn btn-primary is--left" href="<?= $app->urlFor('redirect', ['target' => 'frontend']); ?>" ><?= $language['done_frontend']; ?></a> <a class="btn btn-primary is--right" href="<?= $app->urlFor('redirect', ['target' => 'backend']); ?>"><?= $language['done_backend']; ?></a> </div> <?php $app->render('_footer.php'); ?>
$adminService->addWidgets($adminUser);
            $shopService->updateShop($shop);
            $currencyService->updateCurrency($shop);
            $shopService->updateConfig($shop);
            $localeSettingsService->updateLocaleSettings($locale);
        } catch (\Exception $e) {
            $hasErrors = true;
            $app->view()->setData('error', $e->getMessage());
        }

        if (!$hasErrors) {
            $app->redirect($app->urlFor('finalize'));
        }
    }

    $domain = $_SERVER['HTTP_HOST'];
    $basepath = str_replace('/recovery/install/index.php', '', $_SERVER['SCRIPT_NAME']);
    // Load shop-url     $app->view()->setData('shop', ['domain' => $domain, 'basepath' => $basepath]);

    if (empty($_SESSION['parameters']['c_config_shop_language'])) {
        $_SESSION['parameters']['c_config_shop_language'] = $translationService->translate('locale');
    }
    
/** * @param array $params * * @return string */
    public function getNextUrl($params = [])
    {
        $entries = $this->entries;
        $currentEntry = next($entries);

        return $this->slim->urlFor($currentEntry$params);
    }

    /** * @param array $params * * @return string */
    public function getPreviousUrl($params = [])
    {
        $entries = $this->entries;
        $currentEntry = prev($entries);

        
<?= $language['migration_progress_text']; ?> </div> <div class="progress-actions actions clearfix"> <input type="submit" id="start-ajax" class="btn btn-primary btn-arrow-right is--right" value="<?= $language['start']; ?>" /> </div> </div> <form action="<?= $app->urlFor('cleanup'); ?>" method="get"> <div class="actions clearfix"> <input type="submit" class="btn btn-primary btn-arrow-right is--right is--hidden" id="forward-button" value="<?= $language['forward']; ?>"" /> </div> </form> <?php $app->render('_footer.php'); ?>

        $_SESSION['DB_DONE'] = true;

        $cleanupList = $this->getCleanupList();

        if ($this->request->isPost()) {
            $this->cleanupMedia();
        }

        if (\count($cleanupList) == 0) {
            $_SESSION['CLEANUP_DONE'] = true;
            $this->response->redirect($this->app->urlFor('done'));
        }

        if ($this->request->isPost()) {
            $this->cleanupTemplateRelations();

            $result = [];
            foreach ($cleanupList as $path) {
                $result = array_merge($result, Utils::cleanPath($path));
            }

            if (\count($result) == 0) {
                
<?php $app->render('_header.php', ['tab' => 'start']); ?> <h2><?= $language['start_update']; ?></h2> <form action="<?= $app->urlFor('checks', []); ?>" method="POST"> <input type="hidden" class="hidden-action" value="<?= $app->urlFor('welcome', []); ?>" /> <label><?= $language['select_language']; ?></label> <select name="language" class="language-selection"> <option value="de"<?php if ($selectedLanguage == 'de') {
    ?> selected="selected"<?php } ?>><?= $language['select_language_de']; ?></option> <option value="en"<?php if ($selectedLanguage == 'en') {
        ?>
Home | Imprint | This part of the site doesn't use cookies.