Get File Path In Addon.xml

Hello All,

I am using addon.xml file to get files. As

    file

If I want to get the name of that file we can use

Registry::get('addons.addon_id.get_file');

But I want to get the path where that file is stored on the server, Is there any way to get that? Please help me to find it.

Thanks in advance!

Hello All,

I am using addon.xml file to get files. As

id="get_file">
file

If I want to get the name of that file we can use

Registry::get('addons.addon_id.get_file');

But I want to get the path where that file is stored on the server, Is there any way to get that? Please help me to find it.

Thanks in advance!

Use this to acces file.

Registry::get('config.dir.files').Registry::get('addons.addon_id.get_file')

Use this to acces that file.

Registry::get('config.dir.files').Registry::get('addons.addon_id.get_file')

Thanks Vivek, It is very helpful. :)