I've searched the internet high and low to find a article that covers how to make a good template class but i cannot find one any where.

I can find articles that make tutorial classes but they do not show you how you can use databases with them they are normally just simply replacing variables and outputting a page.

Does any one know of a good article that covers it all?

thanks