[eluser]xwero[/eluser]
if you add the url helper you can do
Code:
class first extends Controller
{
function testredirect()
{
redirect('second/first');
}
function second()
{
echo "I'm redirected from the second controller";
}
}
class second extends Controller
{
function testredirect()
{
redirect('first/second');
}
function first()
{
echo "I'm redirected from the first controller";
}
}
You can redirect within controllers too with redirect.