public function getMenu($name = null, $options = array()) { if (!isset($name)) { $name = $this->_name; } mimport('framework.application.menu'); $menu = MMenu::getInstance($name, $options); if ($menu instanceof Exception) { return null; } return $menu; }