When is appropriate to use Redirect?

#1
[eluser]MissionMan[/eluser]
When is it correct practice to use Redirect instead of a simple load->view?

The reason I ask is because in the ion_auth demo, there is a comment that states:
"use redirects instead of loading views for compatibility with MY_Controller libraries"

I admit I don't fully understand this statement. If I extend someone else's class library, does that mean that forever after, I use redirect?

Thanks.


#2
[eluser]Ben Edmunds[/eluser]
You can still load views. The reason I did it that way is because most MY_Controllers automatically build data and load views based on the URL, by redirecting you can take advantage of that instead of writing it twice. It seemed like the simplest, most compatible way to handle it for generic use.

For most of my own apps I will jut call the controller method instead of redirecting.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.