Keşfet

Get relative directory of addon

XFdestek

Kurucu Üye
Katılım
25 May 2014
Mesajlar
3,211
Tepkime puanı
284
Konum
Türkiye
Web sitesi
fivetu.xyz
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...

Lütfen içeriği görebilmek için Giriş yap yada Kayıt ol
 

Konu görüntüleyen kullanıcılar

Benzer konular

Geri
Üst Alt