• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.