Following is the list of JPATH variables that you can use while component development in Joomla, do let me know if you find any other.
JURI::Root() = http://localhost/myJoomla or http://www.test.com
JPATH_COMPONENT_ADMINISTRATOR = /var/www/html/myjoomla/administrator/components/com_mycomp
JPATH_COMPONENT_SITE= /var/www/html/myjoomla/components/com_mycomp
JPATH_ROOT = /var/www/html/myjoomla
JPATH_SITE = /var/www/html/myjoomla
JPATH_ADMINISTRATOR = /var/www/html/myjoomla/administrator
JPATH_BASE is the root path for the current requested application, so if you are in the administrator application, JPATH_BASE == JPATH_ADMINISTRATOR... if you are in the site application JPATH_BASE == JPATH_SITE... if you are in the installation application JPATH_BASE == JPATH_INSTALLATION.
No comments:
Post a Comment