I want to ask about my debuggig workflow.
My application uses index.php as single entrance point due to .htaccess with RewriteRule directive:
RewriteRule ^(.*)$ /index.php/$1 [L]
To debug this request I use following debuger configurations:
Configuration -> File: path_to_app_dir/index.php
Command Line -> Environment variables: REQUEST_METHOD=POST;REQUEST_URI=/users/register
But besides that, I have to insert this code at the beginnig of index.php file:
$_POST['login'] = 'lofin';
$_POST['password'] = 'password';
This approach works well for me, but I'm curious: do I do everything right? Maybe there is better, easiest and more proper way to do this?