public function edit($id) { Utils::isLogged(); $id_h = Utils::getUserID(); $res = Projects::checkUserProject($id_h, $id); if (empty($res)) { $user_h = User::getUser($id_h); $pro = Projects::getProjectsProfile($id_h); return View::make("error404")->with('details_header', $user_h)->with('projects', $pro); } $t1 = Input::get("pro-title-e"); $d1 = Input::get("description1"); $c1 = Input::get("category1"); Projects::getProjectedit($t1, $d1, $c1, $id); Redirect::to('profile')->send(); }