public function editCategory($id) { //change to category controller $partController = new PartController(); $partController->editCategoryForm($id); }