I have a view which comport a table of data, this data is generated on a model. How can I call this model in my view to be posted on my view...? That\'s the Equivalent of wh
I think it is not a good idea to call a model directly from the view.
Your controller must get data from the model then send it to your view
$this->load->model('my_model');
$my_data['my_array'] = $this->my_model->get_my_data();
$this->load->view('your_view', $my_data);
In your view use it like this
foreach($my_array as $item){
echo $item;
}