campusparty/frontend
Frontend For campusparty
Requires
- php:>=5.4.0
- elitedivision/amos-core:*
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This README would normally document whatever steps are necessary to get your application up and running.
What is this repository for?
Repository for campusparty Frontend Application
How do I get set up?
Composer.json "campusparty/frontend": "dev-master",
Configuration files - Amos4 Platforms
--URL CONFIG common/config/params-local.php
'platform' => [
'frontendUrl' => 'http://frontend-campus-party.test.demotestwip.it/',
'backendUrl' => 'http://campus-party.test.demotestwip.it/',
],
--AGGIUNGERE FRONTEND MODULE frontend/config/module-amos.php
$modules['campusparty-frontend'] = [
'class' => 'campusparty\frontend\Module',
];
--ADD CONFIG frontend/config/main-local.php
'name' => 'Campus Party',
'id' => 'app-frontend',
'basePath' => dirname(__DIR__),
'controllerNamespace' => 'campusparty\frontend\controllers',
'defaultRoute' => 'campusparty-frontend/site/index',
'homeUrl' => 'campusparty-frontend/site/index',
--ADD COMPONENTS frontend/config/components-amos.php
'urlManager' => [
'class' => 'yii\web\UrlManager',
'showScriptName' => false,
'enablePrettyUrl' => true,
'rules' => array(
),
],
'view' => [
'theme' => [
'basePath' => '@vendor/campusparty/frontend/src',
'pathMap' => [
'@app/views' => '@vendor/campusparty/frontend/src/views',
],
],
],
--ADD FRONTEND TRANSLATION
'i18n' => [
'translations' => [
'*' => [
'extraCategoryPaths' => [
'campusparty-frontend' => '@vendor/campusparty/frontend/src/i18n',
],
],
],
],
--ADD CUSTOM PARAMS backend/config/params-local.php
//enable btn dashboard to frontend
'toFrontendLink' => 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 *****/