Skip to content

Architecture

The new JoomLeague is built for Joomla 6.x.

Namespace

Root namespace:

php
Joomleague\Component\Joomleague

Administrator:

php
Joomleague\Component\Joomleague\Administrator

Site:

php
Joomleague\Component\Joomleague\Site

Dependency Injection

New code should not use direct global access such as Factory::getDbo() for business logic.

Database, application and other services should be injected and registered in services/provider.php.

Layer separation

  • models return data;
  • services contain business logic;
  • views prepare data for templates;
  • templates render HTML;
  • JavaScript belongs to media assets.

Documentation is statically generated with VitePress.