How to show same view by diferent parameters |
No need to make 2 functions for this only one thing you have to need
1) join query for both table (user and user_cards) 2) pass a dynamic parameter for ex if you want to get details from user id $this->your-model->commonfunction('users.user_id',$id) also same thing with use card detail $this->your-model->commonfunction('card_details.card_number',$id) in your model function commonfunction(where_1 , $value){ // make where paramites dymanic } |
Messages In This Thread |
How to show same view by diferent parameters - by itvel - 08-09-2018, 12:34 AM
RE: How to show same view by diferent parameters - by php_rocs - 08-09-2018, 12:22 PM
RE: How to show same view by diferent parameters - by Gurutechnolabs - 09-24-2018, 05:54 AM
|