Welcome Guest, Not a member yet? Register   Sign In
Direct echo in Controller - bad parctice?

Thanks for confirming my error - all of you. Can someone with the appropriate authority update http://www.codeigniter.com/userguide3/ge...llers.html with this or a similar suitable warning, please?


(04-01-2015, 06:54 AM)CroNiX Wrote: CI's views are captured with output buffering and sent to the browser after the controller/method is totally done being processed. Echoing from controllers will bypass that and send data FIRST, followed by any views being shown. All output, except general debugging while in development of course, should be sent through a view, not echoing from a controller.


Messages In This Thread
RE: Direct echo in Controller - bad parctice? - by ChrisRitson - 04-03-2015, 10:03 AM

Theme © iAndrew 2016 - Forum software by © MyBB