Actions

Difference between revisions of "Site (Application)"

From Joomla! Documentation

m (Made miscellaneous improvements)
(Added information)
Line 1: Line 1:
 
The '''Site''' [[application]], also known as the ''Front-end'', is the main part of a Joomla website. This is where the general traffic occurs: when a visitor uses your site, he will be using the Site application. You can manipulate this (add/remove [[content]], [[Switching templates|switch templates]] etc.) from the [[Administrator (Application)|Administrator application]].
 
The '''Site''' [[application]], also known as the ''Front-end'', is the main part of a Joomla website. This is where the general traffic occurs: when a visitor uses your site, he will be using the Site application. You can manipulate this (add/remove [[content]], [[Switching templates|switch templates]] etc.) from the [[Administrator (Application)|Administrator application]].
 +
 +
The Site application is implemented in the [[JSite]] class, which is a subclass of the generic [[JApplication]]. The JSite object can be retrieved in all versions that support JSite using the following code. The application will be a JSite object when this code is run in the Site application.
 +
 +
<source lang="php">$app = JFactory::getApplication();</source>
 +
 
[[File:Home page example.png|frame|none|An example Home Page, the first page of the Site application]]
 
[[File:Home page example.png|frame|none|An example Home Page, the first page of the Site application]]
 
<noinclude>[[Category:Application]][[Category:Landing Pages]]</noinclude>
 
<noinclude>[[Category:Application]][[Category:Landing Pages]]</noinclude>

Revision as of 11:06, 20 June 2011

The Site application, also known as the Front-end, is the main part of a Joomla website. This is where the general traffic occurs: when a visitor uses your site, he will be using the Site application. You can manipulate this (add/remove content, switch templates etc.) from the Administrator application.

The Site application is implemented in the JSite class, which is a subclass of the generic JApplication. The JSite object can be retrieved in all versions that support JSite using the following code. The application will be a JSite object when this code is run in the Site application.

$app = JFactory::getApplication();
An example Home Page, the first page of the Site application