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