Welcome Guest, Not a member yet? Register   Sign In
How do I replace front-end views with JSONs in Codeigniter 3?
#3

(08-15-2019, 06:17 PM)includebeer Wrote: This question doesn’t make any sense. There’s no “rock-solid method” that will do the magic for you. It’s a simple process: you load a view, the javascript makes an ajax request to get the data it needs, the controller respond with json data, the javascript read that and plug the data in the DOM.

I do not want to load a Codeigniter view. I want to spit out clean JSON data instead, then use Vue or AngularJS to display the data publicly in a nice way.
Reply


Messages In This Thread
RE: How do I replace front-end views with JSONs in Codeigniter 3? - by Ajax30 - 08-20-2019, 11:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB