Welcome Guest, Not a member yet? Register   Sign In
How to use multiple mvcs together
#6

Another approach is to use session data.

Before you go to the stores controller save the "returnURI".

PHP Code:
$_SESSION['returnURI'] = 'controller/method'

Then when stores is done

PHP Code:
redirect($this->session->returnURI); 

You would probably want to add some code to check the return of $this->session->returnURI before using it. You would also want to clear the session data at some point. Probably in the controller you are returning to.
Reply


Messages In This Thread
How to use multiple mvcs together - by muuucho - 09-25-2017, 02:01 AM
RE: How to use multiple mvcs together - by dave friend - 09-26-2017, 10:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB