Welcome Guest, Not a member yet? Register   Sign In
Query results - passing a string
#1

(This post was last modified: 08-22-2015, 06:25 AM by groovebird.)

Hi,

i found this on die CI-Documentation: (http://www.codeigniter.com/userguide3/da...sults.html)

Quote:You can also pass a string to result() which represents a class to instantiate for each result object (note: this class must be loaded)

My Question: Where do i have to put this class (in which folder)? What is the code for such a class and what is the difference to a model? Do i have to create a seperate model class? I cant find anything in the documentation. A code sample would be great :-)
Reply


Messages In This Thread
Query results - passing a string - by groovebird - 08-22-2015, 06:25 AM
RE: Query results - passing a string - by CroNiX - 08-22-2015, 08:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB