Code layout

Architecture

A deliberately compact module: a single business class handles install, configuration and front injection, backed by a BO controller that only delegates.

File / classRole
FreshapptarteaucitronModule class: install/uninstall, settings form, local-cache management (download, validation, status) and front hooks.
AdminFreshapptarteaucitronControllerController for the BO menu entry; simply calls the module's getContent(), so "Configure" and the menu entry render identically.
views/templates/admin/configure.tplInfo block: tarteaucitron.io presentation and links for account creation / retrieving the API ID.
views/templates/admin/bascule-menu.tplSwitch controlling the back-office menu entry's visibility.
Loading...
Back to top