search

Home  >  Q&A  >  body text

view_replace_str

Steps to replace string in view output

I need to add '.' in front of /static to make it work.

For example: '__STATIC__' => './static/admin/assets',

I don’t know why

jim713jim7132653 days ago1373

reply all(4)I'll reply

  • Geek_Ma

    Geek_Ma2018-02-20 22:07:37

    This place just doesn’t fit. My addition doesn’t work either. I added it before __STATIC__ after the replacement. It’s normal

    reply
    0
  • Me too, not here either

    · 2018-09-28 00:52:09
  • nearest

    nearest2017-10-11 21:48:47

    /is the root directory

    ./is the current directory

    What you write is not the root directory, but the current directory

    reply
    0
  • 路过

    路过2017-10-10 16:52:28

    "/" is the absolute path (the project root directory)

    "./" the relative path (the current directory of the file)

    "../" the relative path (the parent directory of the file) )

    I can only help you so much, just figure it out for yourself

    reply
    1
  • Cancelreply