Skip to main content
caners99037799
Participant
March 28, 2019
Question

How can i make code completion work for PHP included files?

  • March 28, 2019
  • 1 reply
  • 736 views

Hello,

I have a question about auto code completion feature. I am trying Dreamveawer 19.0.1. I am working on a PHP project. My pages have "header.php" and "footer.php" included at certain places. I am also using jQuery and Bootstrap libraries from their CDN's in my project. I have enabled auto discover for outsourced files and it is working really efficent. My problem begins here. When i write code in "header.php", all bootstrap classes are loading very quick this is awesome. But when i start to work for example on "index.php" which includes "header.php", bootstrap classes are not loading for auto completion. I see all included files and so bootstrap.css on the top bar but Bootstrap CSS classes are not loading. This also happens in jQuery too. How can i make the code completion work for all php files which include a php file that has imported files from any CDN? I want the code completion work on all linked files and it does not matter how much system resources that it consumes!

I hope i could explain my problem. Sorry for my weak English.

Best Regards,

Caner

This topic has been closed for replies.

1 reply

Nancy OShea
Community Expert
Community Expert
March 29, 2019

Do you have a local testing server to parse your PHP includes?

I use Wamp server.    See screenshots.

Nancy O'Shea— Product User & Community Expert
caners99037799
Participant
March 29, 2019

Thank you for your answer Nancy.

Yes, i have set up a local test server and a remote server over FTP. I am using WampServer too. Everything is okay when i run the page on design view's live mode. I know everything is working fine but i could not make the automatic code completion work. Here are the screenshot that you might desired to see.

Test Server

Test Server Settings

Here is the code group that auto code completion works. You can also see bootstrap.min.css is included.

Here the code completion is not working anywhere else

Do you advice any solution about this?

Nancy OShea
Community Expert
Community Expert
March 29, 2019

I have a similar set-up.  My <head> tag is populated from a PHP include that contains my CSS file.  I have no trouble with code hints in my parent document.  So I'm guessing you have some code errors that DW cannot reconcile.

  1. Open parent document.
  2. Go to View > Live Code.
  3. Go to Window > Results > Validation.
  4. In the Validation panel, click the triangle and select  Live Document.
  5. Fix reported code errors.
Nancy O'Shea— Product User & Community Expert