I\'m just wondering what is the best way to separate logic components from the layout in a PHP web project?
The content is stored in MySQL, the logic is PHP and the
Try an MVC framework like
CodeIgniter: http://codeigniter.com/
or CakePHP: http://cakephp.org/
(Cake has got a steeper learning curve, but does a lot more stuff automagically)
Here's what MVC is about: http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller