ModulesΒΆ

we use module system of the ZF2. Modules are configured in their config directory. You can use multiple configuration files by using the \Core\ModuleManager\ModuleConfigLoader utility. This way you can split up your configuration in smaller chunks (e.g. put all your configuration about routings into a router.config.php and about templating into a template.congig.php), which are easier to find, read and maintain.

Modules can simply be enabled by adding their names to an array in config/config.php.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
<?php
$modules = array(
      'DoctrineModule',
      'DoctrineMongoODMModule',
      'Core',
      'Auth',
      'Cv',
      'Applications',
      'Jobs',
      'Organizations',
      'Settings',
      'Pdf',
      'Geo'
 );

...
?>

Directory Structure of a module

directory description example
language contains gettext language files _images/module.png
public place for images, css or javascript
config place for configuration files
test place for unit tests
src Controllers, Models etc.
view view scripts

A module can implement the following Features:

  • Dashboard Widgets
  • Configuration formulars
  • Command line tools

currently the following modules exists: