原来在源代码分析系列的defines.php中提到过相关的路径,但是印象中没 JPATH_COMPONENT_ADMINISTRATOR,JPATH_COMPONENT_SITE,JPATH_CONFIGURATION,记下来参考一下。
JPath is used to get the directory path.
DS -- is used as a directory separator.
JPATH_ADMINISTRATOR-- Sets the path to /Joomla/administrator
JPATH_BASE -- sets the entry to joomla /Joomla
JPATH_CACHE --Sets the cache path /Joomla/cache
JPATH_COMPONENT -- Sets the component path /Joomla/components/com_example
JPATH_COMPONENT_ADMINISTRATOR -- sets the backend component path /Joomla/administrator/components/com_example
JPATH_COMPONENT_SITE-- sets the frontend component path /Joomla/components/com_example
JPATH_CONFIGURATION --sets the configuration path