Hi, I have a question. How can I add automaticly postfix for action, when http request method is post? I have
$router->addPost('/:action/:params',['controller'=>'print','action'=>1,'params'=>2]);
And I like "1" parameter replace on 1."Post" string. I tried concatonation and str_replace but without good results. Mayby anyone have idea, except redirect in normal action.
F.e. I'd like that when user call to /print/upload action then called will be upload action from print controller but if user will send post request to same url call shoud be uploadPostAction from print controller.
Thanks in advance Jarek