A
A
Alex2015-11-08 18:06:41
PHP
Alex, 2015-11-08 18:06:41

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

1 answer(s)
R
radiodog82, 2017-10-01
@radiodog82

return $this->response->withRedirect('/item_edit/'.$inserted_id)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question