|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
implementing templates
Hi,
I'm building a web page at the mo, but want to use a prog language or anything so that I can make one template, whcih each page on my site uses. So I make one template, with the menu and other links and such on, that each page uses. Any ideas what I would use to do this? Cheers -Jonathan |
|
#2
|
|||
|
|||
|
If they are the same on every page, just make a function called site_header(), in there output the menu. Call it before any other output, and you're done. After that, make a function called site_footer(), put in the closing tags(</table> etc.) and call it after the rest of the output.
__________________
Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems. - Jamie Zawinski, in comp.lang.emacs |
|
#3
|
|||
|
|||
|
or u could just use includes
![]() |
![]() |
| Viewing: Dev Shed Forums > Other > Dev Shed Lounge > implementing templates |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|