-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
authored and
root
committed
Jul 31, 2016
1 parent
78f8da4
commit 2c6231e
Showing
13 changed files
with
240 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?php | ||
/** | ||
* FecShop file. | ||
* | ||
* @link http://www.fecshop.com/ | ||
* @copyright Copyright (c) 2016 FecShop Software LLC | ||
* @license http://www.fecshop.com/license/ | ||
*/ | ||
# 本文件在app/web/index.php 处引入。 | ||
# fecshop - appfront 的核心模块 | ||
$modules = []; | ||
foreach (glob(__DIR__ . '/modules/*.php') as $filename){ | ||
$modules = array_merge($modules,require($filename)); | ||
} | ||
# 此处也可以重写fecshop的组件。供调用。 | ||
return [ | ||
'modules'=>$modules, | ||
/* only config in front web */ | ||
'bootstrap' => ['store'], | ||
'params' => [ | ||
/* appfront base theme dir */ | ||
'appfrontBaseTheme' => '@fecshop/app/apphtml5/theme/base/front', | ||
'appfrontBaseLayoutName'=> 'main.php', | ||
], | ||
# language config. | ||
'components' => [ | ||
'i18n' => [ | ||
'translations' => [ | ||
'apphtml5' => [ | ||
//'class' => 'yii\i18n\PhpMessageSource', | ||
'class' => 'fecshop\yii\i18n\PhpMessageSource', | ||
'basePaths' => [ | ||
'@fecshop/app/apphtml5/languages', | ||
'@apphtml5/languages', | ||
], | ||
'sourceLanguage' => 'en_US', # 如果 en_US 也想翻译,那么可以改成en_XX。 | ||
], | ||
], | ||
], | ||
'assetManager' => [ | ||
'forceCopy' => true, | ||
], | ||
'user' => [ | ||
'identityClass' => 'fecadmin\models\AdminUser', | ||
'enableAutoLogin' => true, | ||
], | ||
|
||
'errorHandler' => [ | ||
'errorAction' => 'site/error', | ||
], | ||
|
||
|
||
|
||
'urlManager' => [ | ||
'class' => 'yii\web\UrlManager', | ||
'enablePrettyUrl' => true, | ||
'showScriptName' => false, | ||
'rules' => [ | ||
'' => 'cms/home/index', | ||
], | ||
//'baseUrl' => '/fr/', | ||
], | ||
|
||
|
||
|
||
'request' => [ | ||
'class' => 'fecshop\yii\web\Request', | ||
/* | ||
'enableCookieValidation' => true, | ||
'enableCsrfValidation' => true, | ||
'cookieValidationKey' => 'O1d232trde1x-M97_7QvwPo-5QGdkLMp#@#@', | ||
'noCsrfRoutes' => [ | ||
'catalog/product/addreview', | ||
'favorite/product/remark', | ||
'paypal/ipn/index', | ||
'paypal/ipn', | ||
], | ||
*/ | ||
], | ||
], | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!.gitignore |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?php | ||
/** | ||
* FecShop file. | ||
* | ||
* @link http://www.fecshop.com/ | ||
* @copyright Copyright (c) 2016 FecShop Software LLC | ||
* @license http://www.fecshop.com/license/ | ||
*/ | ||
# 本文件在app/web/index.php 处引入。 | ||
# fecshop - appfront 的核心模块 | ||
$modules = []; | ||
foreach (glob(__DIR__ . '/modules/*.php') as $filename){ | ||
$modules = array_merge($modules,require($filename)); | ||
} | ||
# 此处也可以重写fecshop的组件。供调用。 | ||
return [ | ||
'modules'=>$modules, | ||
/* only config in front web */ | ||
'bootstrap' => ['store'], | ||
'params' => [ | ||
/* appfront base theme dir */ | ||
//'appfrontBaseTheme' => '@fecshop/app/appfront/theme/base/front', | ||
//'appfrontBaseLayoutName'=> 'main.php', | ||
], | ||
# language config. | ||
'components' => [ | ||
'i18n' => [ | ||
'translations' => [ | ||
'appserver' => [ | ||
//'class' => 'yii\i18n\PhpMessageSource', | ||
'class' => 'fecshop\yii\i18n\PhpMessageSource', | ||
'basePaths' => [ | ||
'@fecshop/app/appserver/languages', | ||
'@appserver/languages', | ||
], | ||
'sourceLanguage' => 'en_US', # 如果 en_US 也想翻译,那么可以改成en_XX。 | ||
], | ||
], | ||
], | ||
'assetManager' => [ | ||
'forceCopy' => true, | ||
], | ||
'user' => [ | ||
'identityClass' => 'fecadmin\models\AdminUser', | ||
'enableAutoLogin' => true, | ||
], | ||
|
||
'errorHandler' => [ | ||
'errorAction' => 'site/error', | ||
], | ||
|
||
|
||
|
||
'urlManager' => [ | ||
'class' => 'yii\web\UrlManager', | ||
'enablePrettyUrl' => true, | ||
'showScriptName' => false, | ||
'rules' => [ | ||
'' => 'cms/home/index', | ||
], | ||
//'baseUrl' => '/fr/', | ||
], | ||
|
||
|
||
|
||
'request' => [ | ||
'class' => 'fecshop\yii\web\Request', | ||
/* | ||
'enableCookieValidation' => true, | ||
'enableCsrfValidation' => true, | ||
'cookieValidationKey' => 'O1d232trde1x-M97_7QvwPo-5QGdkLMp#@#@', | ||
'noCsrfRoutes' => [ | ||
'catalog/product/addreview', | ||
'favorite/product/remark', | ||
'paypal/ipn/index', | ||
'paypal/ipn', | ||
], | ||
*/ | ||
], | ||
], | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!.gitignore |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters