Published on 12/11/2020
Published by Pratik Takle
Realpath
Following are the ways to get realpaths:
1 2 3 |
[aw2.get realpath.home /] [aw2.get realpath.app_folder /] [aw2.get realpath.template_folder /] |
_______________________
[aw2.get realpath.home /]
This will return – root path of website
Eg. if you use this is domain_name.com then it will return
/var/www/domain_name.com/htdocs/”
_______________________
[aw2.get realpath.app_folder /]
This will return – root path of the app your are currently working with
Eg. if you use this is domain_name.com in examaple-app then it will return
/var/www/domain_name.com/examaple-app-docs/
_______________________
[aw2.get realpath.template_folder/]
This will return – root path of templates folder
Eg. if you use this is domain_name.com in then it will return
/var/www/domain_name.com/templates/
(note: please confirm this shortcode in prior of using)