Copy link to clipboard
Copied
Bonjour, dans dreamweaver je ne trouve pas l outil pour inclure (determiner automatiquement par un explorateur) un lien vers mon fichier php dans un include(").
merci pour votre aide
Sure it is, it just hasn't worked right in years.
On a .php page, a PHP option will appear at the bottom of the Insert menu and within the PHP options context menu, an Include option is available....
When clicked, it adds a standard php include and places the cursor where the file path needs to go but you don't get the option to add a path via browsing, yet...
If you hit the Refresh icon in the Properties window to update DW that the code has changed, it gives you a Filename field with a folder ico
...Copy link to clipboard
Copied
I'm sorry to say this because I have asked many times to get support for inserting server-side includes brought back to DW. Why it was removed in the 1st place is unclear. But it has been this way for a very long time (since CS6). I guess the team does not think it's important.
The ability to insert a PHP server-side include is no longer offered from the Insert options. You have to do it manually. My workaround is to create Custom code Snippets.
<?php include('folder/filename.php'); ?>
Nancy
Copy link to clipboard
Copied
Sure it is, it just hasn't worked right in years.
On a .php page, a PHP option will appear at the bottom of the Insert menu and within the PHP options context menu, an Include option is available....
When clicked, it adds a standard php include and places the cursor where the file path needs to go but you don't get the option to add a path via browsing, yet...
If you hit the Refresh icon in the Properties window to update DW that the code has changed, it gives you a Filename field with a folder icon to browse to the PHP file (in this screen capture, the cursor isn't shown, but it was between the quotes in the include code)...
This is where it breaks however. When you click to browse to an include file by hitting the browse icon, DW will place the file path as text one line above the include code you inserted and not actually within the (" ") of the include...
Long story short, it's there, but it has been completely broken for years. Both installations of CC2015 and CC2017 do the same thing for me on Windows 7. I've always just entered the file path by hand.
Copy link to clipboard
Copied
<Long story short, it's there, but it has been completely broken for years.>
I stand corrected. Anyway, I still use Snippets.