• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MY_Model Base CRUD Model

#13
[eluser]happydude[/eluser]
errrm, sorry. Thank you so much for your fast response and fast action.

This one just popped into my head one hour after I made my last post and I am just checking this thread now. An order_by method will be handy too. It should handle strings or multiple array containing fields with which the result set will be ordered and the order_by value (asc, desc, random).

e.g. $this->product->order_by('sort = asc, date = desc')->get($id); //string
and $this->product->order_by(array('sort' => 'asc', 'date' => 'desc')->get($id); //array

Following your limit() method in the latest release, I've got something working on my end. Just thought I should let you know.

It'll be my last request though for this library though. Wink

Thanks for the simple but great libraries. They are lifesavers. Smile


Messages In This Thread
MY_Model Base CRUD Model - by El Forum - 11-08-2009, 07:02 AM
MY_Model Base CRUD Model - by El Forum - 11-08-2009, 07:43 AM
MY_Model Base CRUD Model - by El Forum - 11-08-2009, 10:58 AM
MY_Model Base CRUD Model - by El Forum - 11-08-2009, 11:01 AM
MY_Model Base CRUD Model - by El Forum - 11-08-2009, 05:06 PM
MY_Model Base CRUD Model - by El Forum - 11-09-2009, 09:05 AM
MY_Model Base CRUD Model - by El Forum - 11-09-2009, 12:15 PM
MY_Model Base CRUD Model - by El Forum - 11-09-2009, 12:28 PM
MY_Model Base CRUD Model - by El Forum - 12-02-2009, 03:09 AM
MY_Model Base CRUD Model - by El Forum - 12-02-2009, 03:22 AM
MY_Model Base CRUD Model - by El Forum - 12-17-2009, 05:02 PM
MY_Model Base CRUD Model - by El Forum - 12-18-2009, 07:19 AM
MY_Model Base CRUD Model - by El Forum - 12-18-2009, 07:48 AM
MY_Model Base CRUD Model - by El Forum - 01-04-2010, 01:28 PM
MY_Model Base CRUD Model - by El Forum - 01-04-2010, 04:36 PM
MY_Model Base CRUD Model - by El Forum - 01-04-2010, 08:37 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 02:16 AM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 02:57 AM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 03:19 AM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 03:27 AM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 12:37 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 12:43 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 12:46 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 12:48 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 12:52 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 12:59 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 01:12 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 03:31 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 04:15 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 04:26 PM
MY_Model Base CRUD Model - by El Forum - 01-17-2010, 08:20 PM
MY_Model Base CRUD Model - by El Forum - 01-23-2010, 06:36 PM
MY_Model Base CRUD Model - by El Forum - 03-06-2010, 09:20 AM
MY_Model Base CRUD Model - by El Forum - 03-09-2010, 05:43 AM
MY_Model Base CRUD Model - by El Forum - 03-09-2010, 05:46 AM
MY_Model Base CRUD Model - by El Forum - 03-09-2010, 05:59 AM
MY_Model Base CRUD Model - by El Forum - 03-09-2010, 08:30 AM
MY_Model Base CRUD Model - by El Forum - 03-09-2010, 08:46 AM
MY_Model Base CRUD Model - by El Forum - 03-23-2010, 08:17 AM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 05:11 AM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 05:24 AM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 06:03 AM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 06:10 AM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 06:21 AM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 06:28 AM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 12:06 PM
MY_Model Base CRUD Model - by El Forum - 04-04-2010, 12:14 PM
MY_Model Base CRUD Model - by El Forum - 05-10-2010, 09:22 AM
MY_Model Base CRUD Model - by El Forum - 05-10-2010, 12:47 PM
MY_Model Base CRUD Model - by El Forum - 05-11-2010, 10:40 AM
MY_Model Base CRUD Model - by El Forum - 05-11-2010, 10:55 AM
MY_Model Base CRUD Model - by El Forum - 05-27-2010, 07:04 PM
MY_Model Base CRUD Model - by El Forum - 05-28-2010, 02:12 AM
MY_Model Base CRUD Model - by El Forum - 06-03-2010, 01:15 AM
MY_Model Base CRUD Model - by El Forum - 06-03-2010, 02:36 AM
MY_Model Base CRUD Model - by El Forum - 06-03-2010, 01:29 PM
MY_Model Base CRUD Model - by El Forum - 08-02-2010, 04:25 AM
MY_Model Base CRUD Model - by El Forum - 08-10-2010, 09:52 PM
MY_Model Base CRUD Model - by El Forum - 05-03-2012, 03:58 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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