I am trying to load this model:
class Menu {
function show_menu()
{
$obj =& get_instance();
$obj->load->helper('url');
$menu = anchor("start/hello/fred","Say hello to Fred |");
$menu .= anchor("start/hello/bert","Say hello to Bert |");
$menu .= anchor("start/another_function","Do something else |");
return $menu;
}
}
This is where my controller is:
function hello($name)
{
$this->load->model('Menu');
$mymenu = $this->Menu->show_menu();
}
Why do I get this error?
Unable to locate the model you have specified: menu