/** * Saves a new menu * */ public function save() { if ($this->input->post('name') != '' && $this->input->post('title') != '') { $data = array('name' => url_title($this->input->post('name'), 'underscore'), 'title' => $this->input->post('title')); $this->menu_model->save($data); // UI panel to update after saving $this->_update_panels(); // Answer send $this->success(lang('ionize_message_menu_saved')); } else { $this->error(lang('ionize_message_menu_not_saved')); } }