I am new to Code Igniter.
I am looking to re-write our current system to use code igniter.
My current question is.
I am transferring the login form.
Currently we have a page with receives an ajax request and validates the data and returns the status when the form is submitted.
How should I go about this in Code Igniter?
My thoughts are to create a controller which receives the request.
But,
A controller should not spit out any response.
So does that mean I should create a view just to spit out a couple of lines of json?
Sure. You could even make it a generic view that can spit out any JSON you want, and then pass in the object to be
json_encoded to the view. That way you could reuse the same view for other controllers that handled AJAX requests as well.