• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is return redirect(); needed?

#1
[eluser]cleansugar[/eluser]
In controller, When I redirect somewhare, I add return.

funtion submit(){
*code*
return redirect()
}

Is return needed to save memory a bit?

#2
[eluser]NMTeck[/eluser]
return is not needed in this case. redirect() return a php header response. I would actually assume you are actually using more memory by processing the extra return.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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