HI

i have been asked to make a site easily updateable and am going to undertake the task in phop. The design is to stay the same and has been created using dynamic web templates (.dwt) is it possible to use php with the templates or not?

Thanks in ADVANCE

Nick

    Just to clarify, do you mean that you want to be able to create something in PHP that'll fill in the editable regions, etc, based on a form?

      no what i mean is that i want to be able to populate the editable regions of the whole site using php not worried about forms

        Well, I'm not the most versed person with this kind of template, but if you add into the code things such as:

        <!-- #BeginEditable "keywords" -->
        <meta name="keywords" content="<?=$phpVar;?>">
        <!-- #EndEditable -->
        

        You can name the files whatever.php and it will attempt to parse the $phpVar variable, displaying its output. Basically, yes, you can put PHP into the templates, its just a matter of deciding how to do it.

          Write a Reply...