|
When we develop any extensions to Joomla! 1.5 to UNDAF must use different routes to files, directories, etc ... JPath object helps us to make absolute paths dynamically, these constants are defined in includes / defined.php, this being the default: DS - Used as a slash or backslash, depending on the server operating system. JPATH_ADMINISTRATOR - abosulto path directory administrator. JPATH_BASE - absolute path to the directory where the application. JPATH_CACHE - abosulto path to the directory cache. JPATH_COMPONENT - absolute Path to the directory from which the component method is used. JPATH_COMPONENT_ADMINISTRATOR - absolute Path to the component in the administrative JPATH_COMPONENT_SITE - absolute path to the component front-end JPATH_CONFIGURATION - path to the configuration file configuration.php JPATH_INSTALLATION - path to the installation directory JPATH_LIBRARIES - path to the directory libraries. JPATH_PLUGINS - absolute path to the plugins directory. JPATH_ROOT - path to the root of our joomla. JPATH_SITE - path to the root of our website on our server. JPATH_THEMES - path to the templates directory. JPATH_XMLRPC - path to XML-RPC directory. We can also edit the file and create a new constant in our directory "uploads" for example:
define ('JPATH_UPLOADS' JPATH_BASE. DS. 'uploads');
|