Welcome Guest, Not a member yet? Register   Sign In
How to exit friendly in my controller
#2

exit/quit kills PHP runtime imediatley. Basically you should not call in your app it.

And in fact a controller is a class that returns a Response object.

> Is there any way or more friendly function offered by CI4 Framework to replace exit/quit?

What do you want to do?
In your sample code, it seems okay that you just add return and remove die().
Reply


Messages In This Thread
RE: How to exit friendly in my controller - by kenjis - 11-22-2021, 09:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB