S

Get relative directory of addon

  • Thread starter Thread starter stromb0li
  • Start date Start date
S

stromb0li

Guest

I have a few files I want to reference within my add-on from a view that aren't meant to be directly public to a customer. Is there an easy way to reference them relatively so I don't have to worry about the server path changing?

I.e. if I have /server/folders/that/are/a/mess/src/addons/my/addon/privatefolder/privatefile.xyz; what's the best way to reference the /src/addons/my/addon/privatefolder/privatefile.xyz from my /my/addon/Pub/View/customview.php file.

My current approach is to use...

Read more

Continue reading...
 
Similar threads Most view View more
Back
Top Bottom