February 26, 2012
CodeIgniter forfeit default views
Question by JHollanti
I’m in the process of creating a quick “hack”. I’ve never used CodeIgniter before, so what i’m asking is probably pretty basic stuff.
I have a controller that outputs some JSON data. However, with the setup i’m working with comes a default view which creates some html to the end of the file and so, my JSON parser throws a fit. Is there a way to disable views altogether as i really don’t need a template file of any kind for this purpose?