Cook the pasta according to package instructions.
While the pasta cooks, heat olive oil in a large skillet over medium heat.
Add the chopped onion and sauté until translucent.
Stir in the minced garlic and cook for an additional minute.
Pour in the crushed tomatoes and season with salt and pepper.
Cook the sauce for about 10-15 minutes, stirring occasionally.
In a separate pan, pan-fry the halloumi until golden.
Combine the cooked pasta, sauce, and halloumi in a large mixing bowl.
Serve hot, garnished with fresh basil.