PHP-defined constants are not recognized in HTML files in the Zend Studio project

Source: Internet
Author: User
PHP-defined constants are not recognized in HTML files in the Zend Studio project
CSS links in HTML are like this,

TEST_CSS is a constant path defined in PHP, but in Zend Studio HTML will still have Error,error as follows

Multiple annotations found at the line:
-Undefined CSS file ({test_css}/
COMM.CSS).
-Invalid Location of tag (link).

When Apache gets up, the system works fine, and the CSS file can be found, "and I can print the path value of the constant {TEST_CSS} in the body of the HTML in the page", which is the error in Zend Studio. I think xdebug, there is such a mistake to debug.

Ask this question to change how to deal with, thank you ~


------to solve the idea----------------------
1, href= "{ test_css}/comm.css"
is not a PHP constant, even if it is a constant, it cannot be written like this
It's just a string identifier.
2, this HTML is used by PHP, when used to replace the logo, so the real runtime is not a problem
3, the editor does not know who the file is used by (advanced Editor can only know what files he used)
4, when debugging this HTML, you can build a directory called {test_css}, put the relevant files in
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.