Cut the tofu into approx. 1 cm cubes, place in a bowl with the cornflour, mix well. Heat the oil in a wide-bottomed frying pan or wok, fry the tofu all over for approx. 3 mins., remove from the heat and keep warm.
Slice the garlic, cut the shallots into pieces and the chilli pepper into rings. Slice the spring onions. Cut the onion greens into approx. 4 cm long pieces, set aside. Heat a dash of oil in a wok, stir fry the garlic, shallots, chilli pepper and spring onions for approx. 5 mins. Grate in the ginger, add the sugar, pepper and soy sauce. Add the tofu and onion greens, mix and heat gently.