lavoriamo/frontend
Frontend For Lavoriamo
Requires
- php:>=5.4.0
- elitedivision/amos-core:*
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master
- 1.0.0
- dev-mirko/1.1.0
- dev-elisa/1.0.0
- dev-mattia/mev21-02
- dev-mirko/1.0.0
- dev-mattia/1.0.0
- dev-elena/1.0.0
- dev-mirko/donne_1.0.0
- dev-riccardo/1.0.0
- dev-stefan-stinca/1.0.0
- dev-lucal/progetti_frontend
- dev-grafica_accordion
- dev-riccardo-restyling
- dev-simone/recaptcha
- dev-simone/fix-frontend
- dev-simone/informazionicorsiemail_to_leads
README
This README would normally document whatever steps are necessary to get your application up and running.
What is this repository for?
Repository for LAVORIAMO Frontend Application
How do I get set up?
Composer.json
"lavoriamo/frontend": "dev-master",
Configuration files - Amos4 Platforms
common/config/params-local.php
'platform' => [
'backendUrl' => 'BACKEND URL',
'frontendUrl' => 'FRONTEND URL',
],
frontend/config/main-local.php
--AGGIUNGERE FRONTEND MODULE
$modules['lavoriamo-frontend'] = [
'class' => 'lavoriamo\frontend\Module',
];
--RETURN MODULE
'modules' => $modules,
--ADD CONFIG
'name' => 'Lavoriamo',
'id' => 'app-frontend',
'basePath' => dirname(__DIR__),
'controllerNamespace' => 'lavoriamo\frontend\controllers',
'defaultRoute' => 'lavoriamo-frontend/site/index',
'homeUrl' => 'lavoriamo-frontend/site/index',
--ADD COMPONENTS
'components' => [
'urlManager' => [
'class' => 'yii\web\UrlManager',
'showScriptName' => false,
'enablePrettyUrl' => true,
'rules' => array(
),
],
'view' => [
'theme' => [
'basePath' => '@vendor/lavoriamo/frontend/src',
'pathMap' => [
'@app/views' => '@vendor/lavoriamo/frontend/src/views',
],
],
],
];
--ADD FRONTEND TRANSLATION common/config/main-local.php
'components' => [
'i18n' => [
'translations' => [
'*' => [
'extraCategoryPaths' => [
'lavoriamo-frontend' => '@vendor/lavoriamo/frontend/src/i18n',
],
],
],
],
],
--ADD NEWS BACKEND CONFIG backend/config/main.php
'params' => [
'site_publish_enabled' => true,
// 'site_featured_enabled' => true
],
--CREATE FILE .htaccess into frontend/web RewriteEngine on
If a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
Otherwise forward it to index.php
RewriteRule . index.php
--URL CONFIG common/config/params-local.php
'platform' => [
'backendUrl' => 'http://devel.lavoriamo.it',
'frontendUrl' => 'http://frontend.devel.lavoriamo.it',
],
--ADD CUSTOM PARAMS backend/config/params-local.php
//enable btn dashboard to frontend
'toFrontendLink' => true,
frontend/config/params-local.php
'logo' => '/img/logo-lavoriamo.png',
'logoMail' => '/img/logo-lavoriamo.png',