public function newproject() { $t = Input::get("title"); $d = Input::get("description"); $c = Input::get("category"); // $file = Input::get("projectfile"); $path = $this->uploadFileToServer(); $format = Projects::getFirstFormat($path["ext"]); $like = 0; $download = 0; $views = 0; $c_date = date('Y-m-d H:i:s'); $userId = Utils::getUserID(); Projects::insertProject($t, $d, $c, $c_date, $path["filename"], $like, $download, $views, $format, $userId); Redirect::to('home')->send(); }