Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
上下文:我正在使用 Slim Framework 4,我正在尝试构建一个自动生成的 /sitemap.xml
我想做这样的事情......
foreach ($app->get(WANT_TO_LIST_EACH_OF_THESE_PATHS) as $path) { echo $domain.path; }
然后为 sitemap.xml 包装一些 XML。
我将如何在 Slim Framework 4 中执行此操作?