Im looking for some sugestions. I am working on a large scale project with 100+ pages/sections, I have build about 20% and really need to optimise the code as much as possible.
Currently I have been controlling my pages through a main page called application.php, this page has case statements controlling passed variables, it passes these variables to a function called build_page(). The build_page function then looks at the passed varaibles and builds a page (it controlles page title, font size, links, printer friendly, background images, style sheets etc)
I am looking at implementing a Class with functions to take care of all these things, my question is - is this the best way to go??
I would be grateful of any sugestions.
Thank you all.