View Full Version : php code in page from template not working.

10-31-2010, 02:06 AM

i'm trying to input php code in a page template above the html text but when i write any code, and putting my php tags the code doesn't change colour, i,e it just stays blue, the code tags don't change for each different bit of code, does this stop the code from working?

i did open a new page and it was fine, but it wouldnt work from my template page.



10-31-2010, 04:29 AM
It may be that Dreamweaver isn't recognizing your page as php. The file name of a php-based template should en with the .dwt.php extension.

10-31-2010, 10:18 AM
thanks DW, seems to work now. tried creating a new file just login.php from my template and it seems to want to work anyway. not sure what was wrong.

thank you.

can close this thread.