RSS Feed/News Get relative directory of addon

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,816
Points
823

Reputation:

I have a few files I want to reference within my add-on from a view that aren't meant to be 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.

Continue reading...
 
Status
Not open for further replies.
Top