function postInstall(Request $request, $id = 0) { $rules = array(); $validator = Validator::make($request->all(), $rules); if ($validator->passes()) { $path = $_FILES['installer']['tmp_name']; $data = \SximoHelpers::cf_unpackage($path); $msg = '.'; if (isset($data['sql_error'])) { $msg = ", with SQL error " . $data['sql_error']; } self::createRouters(); return Redirect::to('sximo/module')->with('messagetext', 'Module Installed' . $msg)->with('msgstatus', 'success'); } else { return Redirect::to('sximo/module')->with('messagetext', 'Please select file to upload !')->with('msgstatus', 'error'); } }
function postInstall($id = 0) { $rules = array(); $validator = Validator::make(Input::all(), $rules); if ($validator->passes()) { $path = $_FILES['installer']['tmp_name']; $data = SximoHelpers::cf_unpackage($path); $msg = '.'; if (isset($data['sql_error'])) { $msg = ", with SQL error " . $data['sql_error']; } SximoHelpers::write_route(); return Redirect::to('module')->with('message', SiteHelpers::alert('success', 'Module Installed' . $msg)); } else { return Redirect::to('module')->with('message', SiteHelpers::alert('error', 'Please select file to upload !')); } }