codeigniter Calling a model method in a view Save a method call in a variable


Example

In Controller:

$this->load->model('your_model');
$data['model'] = $this->your_model;

In view:

$model->your_method;