Welcome Guest, Not a member yet? Register   Sign In
Practical CodeIgniter 3 - A new book coming soon
#44

(08-14-2016, 12:53 AM)Paradinight Wrote: The __call method is wrong. The "get" method in Codeigniter return not the db object. It return a result object. The result does not exist in the db object.

In the __call method you need to return the result object.

http://www.codeigniter.com/user_guide/da...ilder::get
http://www.codeigniter.com/user_guide/da...er::select

Well, damn, you're right. Thanks for catching that! I've fixed it up in the text and the sample code and pushed another version live.
Reply


Messages In This Thread
RE: Practical CodeIgniter 3 - A new book coming soon - by kilishan - 08-14-2016, 08:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB