Home  >  Q&A  >  body text

Static resource path usage

Teacher, if the static resources are separated in the framework, how to set the path? Can the path constant be used directly in the template? I tried creating a static folder and then defining a STATIC constant, but when using it in the template STATIC constant path has no effect....

車*不息車*不息2596 days ago1116

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-08-18 09:29:19

    Template constants are implemented through string replacement. You can use str_replace to make a replacement before outputting to the browser.

    reply
    0
  • Cancelreply