Welcome Guest, Not a member yet? Register   Sign In
Return To Existing URL From Another Controller


I've got myself into a bit of a pickle and could do with some help and advice on the best way around this.

I'm looking to create a bit of code which can be used from multiple places (controllers) and return the user to the page they were previously on once all processing is completed.

For instance, say im viewing the page ('/staff/view/1').

On this page I have an anchor <?= anchor("call/ring", "Ring"); ?> which directs the user to the call controller firing the 'ring' class to do some processing. Suberb!

Once this processing is done - I want to somehow navigate back to ('staff/view/1') but dont know the best way back!

Can someone please advise?  Huh



(This post was last modified: 02-28-2015, 05:11 AM by InsiteFX.)

You can create a variable to hold it and also display from the code below.

PHP Code:
if (isset($_SERVER['HTTP_REFERER']))
"Your previous page URL is " $a;
"You must navigate from index.php page";

What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Theme © iAndrew 2016 - Forum software by © MyBB