public function addTask() { $projectId = $this->request_stack["arguments"][0]; $task = new Task(); $taskId = $task->setProject(ProjectQuery::create()->findOneById($projectId))->setEmployee(EmployeeQuery::create()->findOneById((new Cookie())->get("employee_id")))->save(); $redirect = new Request(); $redirect->redirect("task", "edit", array("id" => $task->getId())); }
public function index() { $request = new Request(); $request->redirect("invoice"); }