S

Get relative directory of addon

  • Thread starter Thread starter stromb0li
  • Start date Start date

Visitor Greeting

Welcome to NullWarehouse.com... We are currently seeking Mod's and Contributors. If you wish to apply for a Mod position then please click on Members dropdown arrow, then click on Staff App and fill it out completely and submit it. If you want to be a Contributor then start contributing and we will have our eye on you and take notice, something great could come of it.

  • We have redone the forum. If you notice any issues or errors please open a Support Ticket under the Members dropdown and let us know.
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 content Most view View more
Back
Top Bottom