Welcome Guest, Not a member yet? Register   Sign In
How to show same view by diferent parameters
#3

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
}
Reply


Messages In This Thread
RE: How to show same view by diferent parameters - by Gurutechnolabs - 09-24-2018, 05:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB