![]() ![]() In my bug tracking example, I want to have URLs like /ticket/42 to refer to the ticket - and Slim has an easy way of parsing out the “42” bit and making it available for easy use in the code. Sometimes, our URLs have variables in them that we want to use in our application. Using the Request and Response object also makes the application more testable as we don’t need to make actual requests and responses, we can just set up the objects as desired. Now we have an application, well need to. This emphasis on Request and Response illustrates Slim 3 being based on the PSR-7 standard for HTTP Messaging. script so we dont have to refer to them by their long-winded names.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |