I and a team of other developers are going to be overhauling the design of the website that was originally put together by someone else, and I was looking for a couple of pointers on certain issues.
The current site is mostly PHP/jQuery/CSS, with each page generated from a DreamWeaver template, and an editable section in the middle, where the actual page content goes. Dreamweaver is a nightmare as it inserts huge amounts of nested markup onto the page and its expensive, so we were planning on moving away to our own simple templating system consisting of a header, footer, body and sidebar based system.
For the ajax enabled content, it's usually buttons that have a clicker assigned via jquery, which call another php script which echo's a return code when complete, and the button clicker's callback processes the return code.
There are other issues as well. There is no discernible design pattern used like MVC or similar - it's a case of PHP/JS/HTML mixed with SQL queries in the same files. Secondly, a lot of the code is dependant on one or two massive files which contains dozens of functions - these offer no benefit, only a weakness as a single syntax error in one of those files brings the whole site down. Thirdly, pages often duplicate functionality found on other pages, especially with regard to checking user session variables and performing certain mySQL queries.
Our plan is to rebuild the site using a template from themeforest for the interactive portions of the site, and then bring over the static content and restyle it slightly. However, I'm trying to weigh up the benefits of using an MVC framework like Zend or Laravel while we're doing all the other upheaval. I'm not too up to date on the what the best framework to use would be, or what benefits it would bring us.
If anyone has done anything similar, I'd love to hear how you went about it.