diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..63b7f2b --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,7 @@ +# Change Log +All notable changes to this project will be documented in this file. + +## 1.0.0 - 2017-03-21 +### Added +- This CHANGELOG file to hopefully serve as an evolving example of a standardized open source project CHANGELOG. +- Added initial Artbox basic project. \ No newline at end of file diff --git a/README.md b/README.md index 85cd96a..013197e 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -Yii 2 Advanced Project Template +Artbox Basic Template =============================== -Yii 2 Advanced Project Template is a skeleton [Yii 2](http://www.yiiframework.com/) application best for -developing complex Web applications with multiple tiers. +Artbox Basic Template is a skeleton [Yii 2](http://www.yiiframework.com/) application enhanced by +light-weight CMS developed by Artweb. The template includes three tiers: front end, back end, and console, each of which is a separate Yii application. @@ -10,12 +10,6 @@ is a separate Yii application. The template is designed to work in a team development environment. It supports deploying the application in different environments. -Documentation is at [docs/guide/README.md](docs/guide/README.md). - -[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2-app-advanced/v/stable.png)](https://packagist.org/packages/yiisoft/yii2-app-advanced) -[![Total Downloads](https://poser.pugx.org/yiisoft/yii2-app-advanced/downloads.png)](https://packagist.org/packages/yiisoft/yii2-app-advanced) -[![Build Status](https://travis-ci.org/yiisoft/yii2-app-advanced.svg?branch=master)](https://travis-ci.org/yiisoft/yii2-app-advanced) - DIRECTORY STRUCTURE ------------------- @@ -24,11 +18,11 @@ common config/ contains shared configurations mail/ contains view files for e-mails models/ contains model classes used in both backend and frontend - tests/ contains tests for common classes + tests/ contains tests for common classes + widgets/ contains views render widgets console config/ contains console configurations controllers/ contains console controllers (commands) - migrations/ contains database migrations models/ contains console-specific model classes runtime/ contains files generated during runtime backend @@ -49,7 +43,6 @@ frontend tests/ contains tests for frontend application views/ contains view files for the Web application web/ contains the entry script and Web resources - widgets/ contains frontend widgets vendor/ contains dependent 3rd-party packages environments/ contains environment-based overrides ``` diff --git a/backend/config/main.php b/backend/config/main.php index 299ebda..d4c1d99 100755 --- a/backend/config/main.php +++ b/backend/config/main.php @@ -15,11 +15,11 @@ 'controllerNamespace' => 'backend\controllers', 'bootstrap' => [ 'log' ], 'controllerMap' => [ - 'settings' => 'artweb\artbox\core\controllers\SettingsController', - 'profile' => 'artweb\artbox\core\controllers\ProfileController', - 'page' => 'artweb\artbox\core\controllers\PageController', - 'seo' => 'artweb\artbox\core\controllers\AliasController', - 'feedback' => 'artweb\artbox\core\controllers\FeedbackController', + 'settings' => 'artbox\core\controllers\SettingsController', + 'profile' => 'artbox\core\controllers\ProfileController', + 'page' => 'artbox\core\controllers\PageController', + 'seo' => 'artbox\core\controllers\AliasController', + 'feedback' => 'artbox\core\controllers\FeedbackController', ], 'modules' => [ 'imagemanager' => [ @@ -60,7 +60,7 @@ 'baseUrl' => '/admin', ], 'user' => [ - 'identityClass' => 'artweb\artbox\core\models\User', + 'identityClass' => 'artbox\core\models\User', 'enableAutoLogin' => true, 'identityCookie' => [ 'name' => '_identity-backend', diff --git a/backend/views/layouts/main.php b/backend/views/layouts/main.php index e611e9f..9f0a667 100755 --- a/backend/views/layouts/main.php +++ b/backend/views/layouts/main.php @@ -5,10 +5,10 @@ * @var View $this */ - use artweb\artbox\core\assets\ArtboxCoreAsset; - use artweb\artbox\core\models\User; - use artweb\artbox\core\widgets\FeedbackWidget; - use artweb\artbox\core\widgets\FlashWidget; + use artbox\core\assets\ArtboxCoreAsset; + use artbox\core\models\User; + use artbox\core\widgets\FeedbackWidget; + use artbox\core\widgets\FlashWidget; use hiqdev\assets\icheck\iCheckAsset; use hiqdev\assets\pnotify\PNotifyAsset; use yii\bootstrap\Html; diff --git a/backend/views/site/index.php b/backend/views/site/index.php index e1699b8..599051a 100755 --- a/backend/views/site/index.php +++ b/backend/views/site/index.php @@ -2,8 +2,6 @@ /* @var $this yii\web\View */ - use artweb\artbox\core\helpers\ImageHelper; - $this->title = 'My Yii Application'; \ No newline at end of file diff --git a/common/config/bootstrap.php b/common/config/bootstrap.php index 40fff15..71b0e0d 100644 --- a/common/config/bootstrap.php +++ b/common/config/bootstrap.php @@ -4,5 +4,5 @@ Yii::setAlias('@backend', dirname(dirname(__DIR__)) . '/backend'); Yii::setAlias('@console', dirname(dirname(__DIR__)) . '/console'); Yii::setAlias('@storage', dirname(dirname(__DIR__)) . '/storage'); - Yii::setAlias('@artbox-core', dirname(dirname(__DIR__)) . '/artweb/artbox-core'); + Yii::setAlias('@artbox/core', dirname(dirname(__DIR__)) . '/artweb/artbox-core'); \ No newline at end of file diff --git a/common/config/main.php b/common/config/main.php index e5b44e7..25f88cc 100644 --- a/common/config/main.php +++ b/common/config/main.php @@ -9,7 +9,7 @@ 'translations' => [ 'core' => [ 'class' => 'yii\i18n\PhpMessageSource', - 'basePath' => '@artbox-core/messages', + 'basePath' => '@artbox/core/messages', ], ], ], diff --git a/common/config/settings.php b/common/config/settings.php index a90b668..068e635 100644 --- a/common/config/settings.php +++ b/common/config/settings.php @@ -7,13 +7,13 @@ return [ 'description' => 'Site administrator', 'analytics' => ' ', ], diff --git a/common/models/LoginForm.php b/common/models/LoginForm.php index 9df968f..d6d5d41 100644 --- a/common/models/LoginForm.php +++ b/common/models/LoginForm.php @@ -1,7 +1,7 @@