sCleanupPath example

if (!empty($urls)) {
            foreach (explode("\n", $urls) as $url) {
                list($key$value) = explode(',', trim($url));
                if (empty($key) || empty($value)) {
                    continue;
                }
                $static[$key] = $value;
            }
        }

        foreach ($static as $org_path => $name) {
            $path = $this->sCleanupPath($name);
            $this->sInsertUrl($org_path$path);
        }
    }

    /** * Create rewrite rules for categories * Default, deprecated method which updates rewrite URLs depending on the current shop * * @param int|null $offset * @param int|null $limit */
    

                'shop' => $shop->getId(),
            ]
        );

        foreach ($articles as $article) {
            $data->assign('sArticle', $article);
            $path = $template->fetch(
                'string:' . Shopware()->Config()->get('sRouterArticleTemplate'),
                $data
            );
            $path = $this->RewriteTable()->sCleanupPath($path);

            $org_path = 'sViewport=detail&sArticle=' . $article['id'];
            $this->RewriteTable()->sInsertUrl($org_path$path);
        }
    }
}
Home | Imprint | This part of the site doesn't use cookies.