frigair/frontend

Frontend For frigair Applications

dev-master 2018-07-23 15:53 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 Frigair Frontend Application

How do I get set up?

-- composer.json "frigair/frontend": "dev-master"

CONFIG PARAMS

  • common/config/params-local.php 'platform' => [

      'backendUrl' => 'BACKEND URL',
      'frontendUrl' => 'FRONTEND URL',
    

    ],

  • backend/config/params-local.php //enable btn dashboard to frontend 'toFrontendLink' => true,

  • common/config/params-local.php
    'favicon' => 'frigair-favicon.ico',

AGGIUNGERE FRONTEND MODULE

  • frontend/config/modules-others.php return [

      'frigair-frontend' =>  [
          'class' => 'frigair\frontend\Module',
      ]
    

    ];

  • frontend/config/main.php return [

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

    ];

  • frontend/config/components-others.php 'components' => [

      'urlManager' => [
          'class' => 'yii\web\UrlManager',
          'showScriptName' => false,
          'enablePrettyUrl' => true,
          'rules' => array(
              //'site/<action>' => 'frigair-frontend/site/<action>',
          ),
      ],
      'view' => [
           'theme' => [
               'basePath' => '@vendor/frigair/frontend/src',
               'pathMap' => [
                   '@app/views' => '@vendor/frigair/frontend/src/views',
               ],
           ],
       ],
    

    ];

ADD TRANSLATION

  • common/config/components-others.php 'components' => [
          'i18n' => [
              'translations' => [
                  '*' => [
                      'extraCategoryPaths' => [
                          'frigair-frontend' => '@vendor/frigair/frontend/src/i18n',
                      ],
                  ],
              ],
          ],
    

    ],