Getting started

Configuration

The configuration files are located in framework/config where you can see three files:

  • router.php: the point of starting where limpid knows how many modules exists and what is the prefix of each module.
<?php
/**
* File contains routes of modules
*/

return [
[
//---Points on HelloLimpidModule
'module' => 'HelloLimpid',
'prefix' => '/'
],
];
  • settings.php: contains the parameters of database connection and other things like enable/disable translation service etc...
<?php

return [
//-doctrine configuration
'doctrine' => [
'port' => '',
'host' => 'localhost',
'database' => 'limpid',
'user' => 'root',
'password' => '',
],

//-translator configuration
'translator' => [
'enabled' => false,
'default_lang' => 'fr',
],

//--error pages manager
'errors' => [
'404' => '', //'MyModule:404error.html.twig',
'500' => '', //'MyModule:500error.html.twig'
],

//-services configuration
'services' => [
// example
// 'service_name' => [
// 'class' => 'app\TestModule\Service\MyService',
// ]
],
];