hi i am making a php site and have really become confused about templating.
Right now I have the following:
A CSS styling file including text formatting and item positions
A php 'template' file containing static text and images that should appear on every page
Various php files containing php code and html for performing various functions in my cms and displaying the results
The php files do very basic formatting so my idea was to have the php template file as the base for all pages, and passing a variable to it depending on the menu selection which will tell the template from which php file to extract the main content.
I dont know if this possible however and would like some guidance as to which way i should be doing this. I also read about some templating systems that help in separating design from processing but I dont know if this is what im looking for.
Thanks and sorry for my confusion please ask if I need to clarify something.