Skip to content

Commit

Permalink
Merge pull request #1 from yincart2/develop
Browse files Browse the repository at this point in the history
v0.3.0
  • Loading branch information
yinhe committed Jul 9, 2015
2 parents ee23a86 + f62ac77 commit 021d540
Show file tree
Hide file tree
Showing 3,021 changed files with 466,435 additions and 856 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ phpunit.phar
# local phpunit config
/phpunit.xml
star-image/

star-merchant/runtime
star-cluster/runtime
star-core/runtime
star-citizen/runtime
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ Yincart2 Galaxy System

微信商城

### star Merchant

商家后台

### star Image

图片空间

虚拟域名配置说明
----------------

Expand All @@ -38,6 +46,10 @@ home.dev 对应star-home

cluster.dev 对应star-cluster

image.dev 对应star-image

merchant.dev 对应star-merchant

....

命名规则为xxx.dev对应star-xxx
Expand All @@ -47,6 +59,10 @@ cluster.dev 对应star-cluster

数据库位于console/data/galaxy_latest.sql

Migration
--------
yii migrate/up system_v0_1_0 --migrationPath=@star/system/migrations

YII2 DIRECTORY STRUCTURE
-------------------

Expand Down
3 changes: 2 additions & 1 deletion common/config/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php
Yii::setAlias('common', dirname(__DIR__));
Yii::setAlias('console', dirname(dirname(__DIR__)) . '/console');
Yii::setAlias('cluster', dirname(dirname(__DIR__)) . '/star-cluster');
Yii::setAlias('home', dirname(dirname(__DIR__)) . '/star-home');
Yii::setAlias('core', dirname(dirname(__DIR__)) . '/star-core');
Yii::setAlias('wechat', dirname(dirname(__DIR__)) . '/star-wechat');
Yii::setAlias('matter', dirname(dirname(__DIR__)) . '/star-matter');
Yii::setAlias('star', dirname(dirname(__DIR__)) . '/star-modules');
Yii::setAlias('theme', dirname(dirname(__DIR__)) . '/star-themes');
Yii::setAlias('console', dirname(dirname(__DIR__)) . '/console');
Yii::setAlias('image', dirname(dirname(__DIR__)) . '/star-image');
Yii::setAlias('merchant', dirname(dirname(__DIR__)) . '/star-merchant');
32 changes: 28 additions & 4 deletions common/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
return [
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'language' => 'zh-CN',
'timeZone' => 'Asia/Shanghai',
'sourceLanguage' => 'en-US',
'modules' => [
'blog' => [
Expand All @@ -10,14 +11,17 @@
'utility' => [
'class' => 'c006\utility\migration\Module',
],
'gridview' => [
'gridview' => [
'class' => '\kartik\grid\Module',
'i18n' => [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@kvgrid/messages',
'forceTranslation' => true
]
]
],
'auth' => [
'class'=>'star\auth\Module',
],
],
'components' => [
'i18n' => [
Expand All @@ -40,7 +44,27 @@
'class' => 'yii\i18n\PhpMessageSource',
'sourceLanguage' => 'en-US',
'basePath' => '@star/order/messages',
]
],
'marketing' => [
'class' => 'yii\i18n\PhpMessageSource',
'sourceLanguage' => 'en-US',
'basePath' => '@star/marketing/messages',
],
'account' => [
'class' => 'yii\i18n\PhpMessageSource',
'sourceLanguage' => 'en-US',
'basePath' => '@star/account/messages',
],
'refund' => [
'class' => 'yii\i18n\PhpMessageSource',
'sourceLanguage' => 'en-US',
'basePath' => '@star/refund/messages',
],
'member' => [
'class' => 'yii\i18n\PhpMessageSource',
'sourceLanguage' => 'en-US',
'basePath' => '@star/member/messages',
],
],
],
'urlManager' => [
Expand All @@ -49,7 +73,7 @@
'enableStrictParsing' => false,
'rules' => [
'<controller:\w+>s' => '<controller>/index',
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<id:\d+>' => '<controller>/view',
],
],
'cache' => [
Expand Down
1 change: 0 additions & 1 deletion common/models/.gitkeep

This file was deleted.

65 changes: 0 additions & 65 deletions common/models/FriendLink.php

This file was deleted.

Loading

0 comments on commit 021d540

Please sign in to comment.