本文整理匯總了PHP中menu::show_menu方法的典型用法代碼示例。如果您正苦於以下問題:PHP menu::show_menu方法的具體用法?PHP menu::show_menu怎麽用?PHP menu::show_menu使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類menu
的用法示例。
在下文中一共展示了menu::show_menu方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: mainpage
function mainpage($mydata)
{
$this->data['mytitle'] = 'Monitoring website';
$this->data['diagnostic'] = $diagnostic;
foreach ($mydata as $key => $variable) {
$this->data[$key] = $variable;
}
//here's the menu class
$fred = new menu();
$this->load->library('session');
$mysess = $this->session->userdata('session_id');
if (isset($this->status) && $this->status > 0) {
$this->data['menu'] = $fred->show_menu($this->status);
}
$this->load->view('basic_view', $this->data);
}
示例2: mainpage
function mainpage($mydata)
{
Display();
$this->data['title'] = 'Monitoring website';
foreach ($mydata as $key => $variable) {
$this->data[$key] = $variable;
}
/*here's the menu class we looked at in Chapter 3*/
$fred = new menu();
$this->load->library('session');
$mysess = $this->session->userdata('session_id');
if (isset($this->status) && $this->status > 0) {
$this->data['menu'] = $fred->show_menu($this->status);
}
$this->load->view('header.tpl.php', $this->data);
}