Calling a model method in a view

Other topics

Save a method call in a variable

In Controller:

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

In view:

$model->your_method;

Contributors

Topic Id: 8163

Example Ids: 26255

This site is not affiliated with any of the contributors.