e015/frontend

Frontend For E015 Applications


README

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

What is this repository for?

Repository for E015 Frontend Application

How do I get set up?

  • Composer.json ` "e015/frontend": "dev-master"
    
    
  • Configuration files - Amos4 Platforms

frontend/config/modules-others.php

 'e015frontend' => [
    'class' => 'e015\frontend\Module',
 ]
 ```
 frontend/config/main.php
 ```
 return [
    'id' => 'app-frontend',
    'basePath' => dirname(__DIR__),
    'controllerNamespace' => 'e015\frontend\controllers',
    'defaultRoute' => 'e015frontend/site/index',
    'homeUrl' => 'e015frontend/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>' => 'e015frontend/site/<action>',
        ),
    ],

To avoid conflict with amos-basic-template frontend application, delete the following files/directories from your project frontend:

  • /src/frontend/assets
  • /src/frontend/controllers/SiteController.php
  • /src/frontend/views
  • /src/frontend/web/assets
  • /src/frontend/runtime/cache

Check and eventually remove files under /src/frontend/models if unused or conflicting.