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 33 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

php/component/com_example
Always use the static JRoute::_() method to output URIs.
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???
Getting Started
[ 24 ]
Directory Structure
Developing for Joomla! requires an understanding of the overall directory structure.
The following tree diagram describes the different folders and their purposes within
an installation:
Chapter 2
[ 25 ]
Getting Started
[ 26 ]
Libraries
Joomla! includes a selection of useful libraries, including its own library??”joomla.
To import a library we use the jimport() function. In this example we import the
joomla.filesystem.file library, which is specifically for handling files:
jimport('joomla.filesystem.file');
When we import a library, we have the option of importing the entire library or
just a small part of it. The previous example imports the /libraries/joomla/
filesystem/file.php file. If we want, we can import all of the files in the filesystem
directory. To do this we need to use the asterisk wildcard:
jimport('joomla.


Pages:
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45