3
我试图加载这个模型MODELNAME:无法找到您所指定的型号:
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;
}
}
这是我的控制器:
function hello($name)
{
$this->load->model('Menu');
$mymenu = $this->Menu->show_menu();
}
为什么我得到这个错误?
Unable to locate the model you have specified: menu
谢谢,它帮助 – BlackFire27 2012-02-16 17:24:28