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

(09-26-2017, 10:20 AM)daveĀ friend Wrote: 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.

Absolutely a nice approach, thanks!
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 muuucho - 09-26-2017, 10:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB