такую ошибку. Автор игнорирует сообщения в ЛС.
if (isset($this->request->get['route'])) { $get = explode("/", $this->request->get['route']); if ($get[0] == 'extension') { $ext = $get[0]; $folder = $get[1]; $file = $get[2]; } else { $folder = $get[0]; $file = $get[1]; } if ($file == 'user_permission') { $table = 'user_group'; } else { if($folder == 'module'){ $table = 'module'; } elseif($folder == 'newsblog') { $table = $folder.'_'.$file; } else { $table = $file; } } $this->load->model('setting/setting'); if ($file == 'user_permission' || $folder == 'module') { $id = $this->model_setting_setting->getLastId($table, $table); } else { $id = $this->model_setting_setting->getLastId($table, $file); } if ($folder != 'module') { if ($file == 'setting') { $route = 'setting/store'; $editroute = 'setting/setting'; } else { $route = $folder.'/'.$file; $editroute = $folder.'/'.$file.'/edit'; } } else { if (isset($ext)) { $route = 'extension/'.$folder.'/'.$file; $editroute = 'extension/'.$folder.'/'.$file; } else { $route = $folder.'/'.$file; $editroute = $folder.'/'.$file; } } if (!isset($url)) $url = ''; if(($folder != 'module') && ($folder != 'newsblog')) { if (($file != 'setting') && (isset($this->request->get[$table.'_id']) || isset($id))) { $url .= '&'.$table.'_id='.(isset($this->request->get[$table.'_id']) ? $this->request->get[$table.'_id'] : $id); } } elseif($folder == 'newsblog') { $url .= '&'.$file.'_id='.(isset($this->request->get[$file.'_id']) ? $this->request->get[$file.'_id'] : $id); } else { $url .= '&module_id='.(isset($this->request->get['module_id']) ? $this->request->get['module_id'] : $id); } if (isset($this->request->post['apply']) && $this->request->post['apply'] == '1') { $this->response->redirect($this->url->link($editroute, 'user_token=' . $this->session->data['user_token'] . $url, true)); } else { if($folder != 'module') { $this->response->redirect($this->url->link($route, 'user_token=' . $this->session->data['user_token'] . $url, true)); } } }
Ребят, подскажите плиз что не так??
это просто кусок кода. это не текст ошибки
Обсуждают сегодня