Welcome Guest, Not a member yet? Register   Sign In
Header and redirect
#3

[eluser]AndrewMalachel[/eluser]
From what I see, you just want to call another controller function (within the same class) from other function, right?
Rather than using the Redirect function, why don't you call the ct2 function directly from the ct function?

so your code are changed to be something like:
Code:
function ct(){  //Second Step

// ....

// redirect('add/ct2/'.$key, 'location', 301); // we'll change this into :
$this->ct2($key);                              // this...
}

function ct2($key){ //Third Step
echo $key;
}

hope it helps...


Messages In This Thread
Header and redirect - by El Forum - 01-13-2009, 05:40 PM
Header and redirect - by El Forum - 01-13-2009, 09:03 PM
Header and redirect - by El Forum - 01-14-2009, 12:20 AM
Header and redirect - by El Forum - 01-14-2009, 05:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB