A novel triphenylamine-based dye sensitizer supported on titania nanoparticles and the effect of titania fabrication on its optical properties