public function init($menu_id = 0, $render = true) { $this->set_menu_id($menu_id); $this->load(); $this->_attach(); if (!empty($menu_id) && $render === true) { $this->render(); } return $this; }