|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
|
hello, i have some question about creting a template for my web sites. i currently trying to make a web sites which include a lot of pages. i find that it is very trouble to create the same layout of a web page over and over many times isn't there a way that i can create a default template web page, so everytime when i create a new web page i can just use that template web page as the layout, do i dont' need to copy and paste the code over and over again.
|
|
|
|
|
|
#2 |
|
Member (10 bit)
|
Most developers will use Include files to store code that is going to be used on most, if not all, pages. For instance, you can have one file called Header.inc which would contain everything on the "top" part of your page. You could also have one called Menu.inc which would contain the code for you menu. Then you could have another file called Footer.inc which would have all the code for the "bottom" part of your page. Then whenever you're going to make a new page, all you have to do is put a simple INCLUDE statement on your page and the code will be 'imported' from your .inc file. Does this help?
|
|
|
|
|
|
#3 |
|
Member (9 bit)
|
ok, what is .inc file. so whenever i want the part of the page to be display on every single web pages. i have to save that part in
to a .inc file. does that part have to be in html tag format like // // // // // // // in the .inc file or just type in the approiate part of the tag into the .inc file and then using a include statment. by any chance can u give me an example, it is not very clear what you saying. thank you Report this |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|