1.

What is Route callbacks and explain its arguments?

Answer»

Each routing METHOD in Slim Framework will accept a callback routine as the FINAL argument. The last CASE may be any PHP callable.

By default, the framework allows three arguments - Request, RESPONSE, arguments.

An argument is a function that specifies the actions to be taken when a route is matched to a request. It includes values for the existing route’s specific PLACEHOLDERS.



Discussion

No Comment Found