本文整理汇总了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);
}