CMS and Templating system - PHP