Heat the oven to 220 C / 425 F (200 C / 400 F for a fan oven) and line a 33 x 46 cm / 13 x 18 inch sheet pan with parchment. In a large bowl, mix the olive oil, grated garlic, 2 tbsp lemon juice, cumin, smoked paprika, coriander, turmeric, cinnamon, allspice and 1/4 tsp salt into a loose paste.
Scoop 2 tbsp of the paste into a small bowl and set it aside for the halloumi. Add the onions, peppers, zucchini and chickpeas to the large bowl and toss until every piece is coated.
Spread the vegetables and chickpeas on the tray in a single layer with a little space between pieces. Bake for 20 minutes, stirring once after 10 minutes, until the onions are soft and the edges are browned.
While the vegetables bake, cut the halloumi into 2 cm cubes and toss them in the reserved paste. In a separate bowl, stir the yogurt, 1 grated garlic clove, 1 tbsp lemon juice, 1 tbsp water and a pinch of salt. Add more water a teaspoon at a time until the sauce falls off a spoon in a ribbon. Wrap the pita in foil.
Take the tray out and scatter the halloumi over the vegetables in a single layer. Bake for 15 minutes, until the halloumi is golden brown at the edges. Put the foil-wrapped pita on the oven rack for the last 5 minutes.
Sprinkle the parsley over the tray and add a few spoonfuls of the yogurt sauce. Serve within 15 minutes with the warm pita and the rest of the sauce.