private function _init() { if (!isset($_GET['m']) || !is_numeric($_GET['m'])) { $this->_model->mid = 1; } else { $this->_model->mid = $_GET['m']; } $this->_tpl->assign('mid', $this->_model->mid); $getParam = $this->_model->getParam(); $num = 0; foreach ($getParam as $key => $value) { if (!$value) { $getParam->{$key} = '参数' . ++$num; } } $this->_tpl->assign('getParam', $getParam); $_module = new MenuModel(); $_module->mid = $this->_model->mid; $_module_name = $_module->getOneModule(); if ($_module_name->module_name == '下载中心') { $this->_tpl->assign('download', true); } }