Count model result |
how can i count rows of model result ?
For example : Code: $usersModel = new UsersModel();
Hi,
Code: public function number_of_x_item($x_id){
You can create a helper function to simplify things:
PHP Code: if (!function_exists('numRows')) PHP Code: count($users); |
Welcome Guest, Not a member yet? Register Sign In |