In spite that I am very new to the Slim 3 framework I'm using it for a small project (API) and it works fine except for the double output that I'm getting back and it's making me crazy! I'm suspecting that htaccess is calling the index.php file twice, leading the app to run more than once, or an incorrect integration of the viewer code (Formater.php)....but I can't seem to find it.
My second question is: Where exactly do Slim 3 apps end ( the exit point ) ?
Here is a short description of my app flow:
input-request ---> Slim route handlers ---> my code (middleware and controllers ) ---> my output formater ( I use a small class to handle the output depending on the format switch [text, json, xml] *** the Formater class)