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.
在 Fat Free 中,可以通过简单地使用 route 或 reroute 来触发 GET 请求。但是在很多情况下,GET 方法是不安全的,不适合发送参数。如何触发对 URL 的发布请求并通过 POST 发送参数?
看看mock()。我想这就是你要找的。
mock()
https://github.com/bcosca/fatfree#mocking-http-requests