Site (Application)

From Joomla! Documentation

Revision as of 20:09, 23 June 2014 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎中文(台灣)‎

The Site S:MyLanguage/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 S:MyLanguage/content, switch templates etc.) from the Administrator application. Users with appropriate access levels will also be able to edit some aspects of the site from the Front-end.

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 variable $app will be a JSite object when this code is run in the Site application.

$app = JFactory::getApplication();

Example

An example Home Page, the first page of the Site application