Welcome Guest, Not a member yet? Register   Sign In
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.




Theme © iAndrew 2016 - Forum software by © MyBB