SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 45 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

You should include the
following code, or similar, at the top of your PHP files:
defined('_JEXEC') or die('Restricted access');
The constants that you will probably use the most relate to paths. The DS constant is
the character used by the operating system to separate directories; this is normally a
backslash (\) or a forward slash (/). This table describes the different path constants;
the examples, described within the parentheses, assume that the installation is
located in /joomla and that we are accessing the installation from the frontend; the
actual paths will differ depending on the Joomla! installation:
Name Description
DS Directory Separator (/)
JPATH_ADMINISTRATOR Administrator path (/joomla/administrator)
JPATH_BASE Path to the entry directory (/joomla)
JPATH_CACHE Cache path (/joomla/cache)
JPATH_COMPONENT Component path (/joomla/components/
com_example)
JPATH_COMPONENT_
ADMINISTRATOR
Component backend path (/joomla/administrator/
components/com_example)
Chapter 2
[ 33 ]
Name Description
JPATH_COMPONENT_SITE Component frontend path (/joomla/components/
com_example)
JPATH_CONFIGURATION Configuration path (/joomla)
JPATH_INSTALLATION Installation path (/joomla/installation)
JPATH_LIBRARIES Libraries path (/joomla/libraries)
JPATH_PLUGINS Plugins path (/joomla/plugins)
JPATH_ROOT Path to the frontend entry directory (/joomla)
JPATH_SITE Path to the public directory (/joomla)
JPATH_THEMES Templates path (/joomla/templates)
Four date constants define different date-formats.


Pages:
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57