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.
我有问题$app->urlFor()。我有名为路线的博客。每次我$app->urlFor('blog')用来创建链接时,该函数总是返回 localhost:8000/ index.php /blog 而不是localhost:8000/blog。
$app->urlFor()
$app->urlFor('blog')
有人能帮我吗 ?
您需要配置您的网络服务器以使用漂亮的 URL:
http://docs.slimframework.com/#Route-URL-Rewriting