fami/frontend

Frontend FAMI Applications

dev-master 2021-10-21 14:57 UTC

README

This README would normally document whatever steps are necessary to get your application up and running.

What is this repository for?

Repository for Legalita in Comune Frontend Application

How do I get set up?

  • Composer.json

    "fami/frontend": "dev-master"

  • Configuration files - Amos4 Platforms

frontend/config/modules-others.php

'fami-frontend' => [

'class' => 'fami\frontend\FamiModule',

]

frontend/config/main.php

return [

'id' => 'app-frontend',
'basePath' => dirname(__DIR__),
'controllerNamespace' => 'fami\frontend\controllers',
'defaultRoute' => 'fami-frontend/site/index',
'homeUrl' => 'fami-frontend/site/index',
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
'bootstrap' => $bootstrap,
'components' => $components,
'modules' => $modules,
'params' => $params,
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

];

frontend/config/components-others.php

'urlManager' => [

    'class' => 'yii\web\UrlManager',
    'showScriptName' => false,
    'enablePrettyUrl' => true,
    'rules' => array(
        'site/<action>' => 'fami-frontend/site/<action>',
    ),
],