How to call codeigniter controller function from view? When i call the function in a controller, get a 404 page.
Go to the top of your View code and do it like this :
load->model('MyModelName'); $MyFunctionReturnValue = $this->MyModelName->MyFunctionName($param)); ?> Your HTML CODE