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

(04-01-2015, 06:54 AM)CroNiX Wrote: Really the only exception to that is sending back json or other data. Then you'd echo it from the controller and not use a view (in most cases)

I'm glad someone with more experience in CI than me said this. That's the only time I've echo'd directly from a controller, and was wondering if it really needed its own view for JSON output.
Developing mostly on Ubuntu 14.04 in a VM. Probably insane, but it works.

Messages In This Thread
RE: Direct echo in Controller - bad parctice? - by gabe3886 - 04-02-2015, 02:42 AM

Theme © iAndrew 2016 - Forum software by © MyBB