PDA

View Full Version : using includes


geordie728
06-03-2009, 05:26 AM
this is possibly more of a Dreamweaver query than anything else but I'll fire it at everyone anyway.

I've never been a fan of Dreamweaver templates and so tend to use includes to deliver common elements of my website like header, footer, sidebar nav etc.

however, I want a product search in my header and because it's in an include the page won't load because of the file path.

I've tried various iterations of paths with no joy.

my includes are in a folder called includes at the root level (same level as other webassist folders are at).

Any advice would be greatly appreciated.

Should have mentioned I'm using PHP

Ray Borduin
06-03-2009, 06:46 AM
You say:
"I've never been a fan of Dreamweaver templates and so tend to use includes to deliver common elements of my website like header, footer, sidebar nav etc."

The two aren't mutually exclusive. I'm a big fan of templates that are comprised of mostly includes. They actually work well as a team.

You should be able to come up with the correct file path. What are you using? What error are you getting?

geordie728
06-04-2009, 04:57 AM
It's the Dreamweaver template locked errors I get frequently. It's probably just my understanding of Dreamweaver templates that's flawed and after umpteen years as a DW user, I doubt it's going to change so includes are practically the same.

I managed to sort it. The issue was the database connection path.

Seems to be working well now.