Separating PHP and HTML

I’m beginning to re-think my approach of application logic and presentation. Currently my HTML is rather full of PHP - and even though I’ve tried to abstract as much of the logic as possible it’s still a large amount. I’m wandering how you guys do it - and what you think is best practice. I’ve read a lot about MVC - and whilst I think I understand it properly it seems I’m either

  • Writing code more than once to accomplish something simple
  • Or using large frameworks on a simple site

Are there any simple things I can do, best practises in this area, articles to read to help?

Thanks.

I highly recommend From Flat PHP to Symfony2. “You’ll write a simple application in flat PHP, and then refactor it to be more organized. You’ll travel through time, seeing the decisions behind why web development has evolved over the past several years to where it is now.”