Click to See Complete Forum and Search --> : Don't want DW template - I go with php's -include file- then?


WebEmperess
06-28-2008, 03:47 PM
Heya again.

I get the feeling that using Dreamweaver template is somewhat beginner stylish or atleast it looks ugly in the source code. So what do other webdevelopers use? Is it:

<?php
include("xx.php");
?>

To make it abit more concrete:
I have a site with a newsbox/important stickies. I want them to be shown on every page. As of now I've just created a Dreamweaver template so that I just have to update the template itself and not every single file... (same goes for menu etc.)
Would this work just as good using the PHP script written above?
(I would feel more pro if i used it...lol:p ) or are there any other smooth & effecient ways?

Thanks in advance.

Mr. E. Cryptic
06-28-2008, 03:56 PM
yeah, the include function will do the same job. you'd just have to update the xx.php file and it''s content will apear everywhere you have the <?php include('xx.php'); ?>

hastx
06-29-2008, 10:48 PM
An include file would also allow you to avoid using dw altogether by using any CMS or even a rich text editor to make your updates to the include....or you could update your include off line and just use a simple upload script to place it in the directory.

I've not used dreamweaver much, but using a dw template for a site requiring frequent updates seems inconvenient in the fact that you edit it with Dreamweaver.