Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How to exit friendly in my controller
Post: RE: How to exit friendly in my controller

kenjis Wrote: (11-22-2021, 09:03 PM) -- 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. ...
3,212 Views
4 Replies
11-23-2021, 12:37 AM
yongplus
  Wink Thread: How to exit friendly in my controller
Post: How to exit friendly in my controller

I wrote a global function below named outputJson in my project to print JSON and exit. PHP Code: -- /** * 格式化Json输出并终止程序 */ function outputJson($status, $msg='', $data=''){     //header("con...
3,212 Views
4 Replies
11-22-2021, 07:55 PM
yongplus

Theme © iAndrew 2016 - Forum software by © MyBB