Soak the dried beancurd in water.
Finely chop the onion and garlic.
Heat olive oil in a pan and sauté the garlic and onion.
Add the soaked dried beancurd and stir-fry together.
Pour in the tomato sauce and bring to a boil.
Season with salt and pepper.
Add the cooked pasta and toss with the sauce.
Plate and garnish with Parmesan cheese and basil.