Welcome Guest, Not a member yet? Register   Sign In
alternatives to redirect command
#1

[eluser]august.gresens[/eluser]
hello

Just finished a fantastic book about web site optimization (High Performance Web Sites by Steve Sounders).

This book points out that using redirects slows down page loading due to the extra interactions between the client and server

In my current project I'm using a bunch of redirects to invoke controller methods. For example, on logout from my user controller, I want to redirect to the home page of my main controller.

function logout()
{
$this->_logOut();
redirect('main/home');

}

Is there a way I can invoke a method on another controller to achieve the same effect without using a redirect?

Thanks,

August


Messages In This Thread
alternatives to redirect command - by El Forum - 07-22-2008, 04:16 PM
alternatives to redirect command - by El Forum - 07-22-2008, 04:57 PM
alternatives to redirect command - by El Forum - 07-23-2008, 06:31 AM
alternatives to redirect command - by El Forum - 07-23-2008, 10:51 AM
alternatives to redirect command - by El Forum - 07-23-2008, 11:08 AM
alternatives to redirect command - by El Forum - 07-23-2008, 11:28 AM
alternatives to redirect command - by El Forum - 07-23-2008, 01:17 PM
alternatives to redirect command - by El Forum - 07-23-2008, 01:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB