Answer the question
In order to leave comments, you need to log in
Slim framework redirect with Url change?
How to change url from slim framework.
For example, get -> /add goes,
and in the code I want to redirect to /item_edit/$inserted_id
$app->redirect( ) does not give any effect at all.
PS Yes, apparently the problem is that slim is not in the root, but in the next folder, like the root of the project. And all the work goes through /next/....
That's why cookies don't work either. What adjustments should be made to correct this situation?
Answer the question
In order to leave comments, you need to log in
return $this->response->withRedirect('/item_edit/'.$inserted_id)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question