I want to send an array using a variable from view to controller, so that I can use it to get some data from database according to that array! For example, in my view I will have a variable with different equations like:
$data = 'setter';
and somewhere else:
$data = 'libero';
Then in my controller I will have a code like:
if($query = $this->players_model->get_players(array('player_Position' => $data, 'limit' => 3))) { $data['players'] = $query; }
what should I do to get it work?!