find_by model fuelphp code example
Example: find_by model fuelphp
$users = Model_User::find(array(
'where' => array(
'active' => 'yes',
'banned' => 'no',
),
'order_by' => array('id' => 'desc'),
), 'id');
$users = Model_User::find(array(
'where' => array(
'active' => 'yes',
'banned' => 'no',
),
'order_by' => array('id' => 'desc'),
), 'id');