Welcome Guest, Not a member yet? Register   Sign In
Custom Ajax response class
#1

[eluser]Unknown[/eluser]
Hi!
I want to implement a custom class, so I can use it as the response of the ajax calls...
This class will contain some attributes like response status, response message, the model object retrieved... and methods like exporting all this to json or whatever...
As I'm new to CI, I donĀ“t really know where to create this class...
should I create it in the models folder or should it be a custom library?
Is there any best practice to do this?
Thanks in advance!




Theme © iAndrew 2016 - Forum software by © MyBB