Commit 05d7ed2f by semenov

Начало разработки

parents
# Created by .gitignore support plugin (hsz.mobi)
\ No newline at end of file
<?php
/**
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 31.03.2015
*/
namespace skeeks\modules\cms\shop;
use skeeks\cms\base\Module as CmsModule;
/**
* Class Module
* @package skeeks\modules\cms\shop
*/
class Module extends CmsModule
{
public $controllerNamespace = 'skeeks\modules\cms\shop\controllers';
/**
* @return array
*/
protected function _descriptor()
{
return array_merge(parent::_descriptor(), [
"version" => "0.0.1-dev",
"name" => "Модуль интернет магазин",
]);
}
}
\ No newline at end of file
Модуль для SkeekS cms
===================================
Игформация о модуле
-------------------
Установка
------------
Модуль в планах на разработку. Пока - пустышка.
1) Стандартная установка через composer
```
php composer.phar require --prefer-dist skeeks/cms-module-shop "*"
```
or add
```
"skeeks/cms-module-shop": "*"
```
to the require section of your `composer.json` file.
2) Установка миграций
```
php yii migrate @skeeks\modules\cms\shop\migrations
```
> [![skeeks!](https://gravatar.com/userimage/74431132/13d04d83218593564422770b616e5622.jpg)](http://www.skeeks.com)
<i>Web development has never been so fun!</i>
[www.skeeks.com](http://www.skeeks.com)
<?php
/**
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 01.04.2015
*/
namespace skeeks\modules\cms\shop\assets;
use skeeks\cms\base\AssetBundle;
/**
* Class Asset
* @package skeeks\modules\cms\shop\assets
*/
class Asset extends AssetBundle
{
public $sourcePath = '@vendor/skeeks/cms-module-shop/assets';
public $css = [];
public $js = [];
public $depends = [];
}
{
"name": "skeeks/cms-module-shop",
"description": "Модуль интернет магазин SkeekS cms",
"keywords": ["module", "cms", "skeeks", "sx", "app", "yii2", "catalog", "shop"],
"homepage": "http://www.skeeks.com/",
"type": "yii2-extension",
"license": "BSD-3-Clause",
"support": {
"issues": "http://www.skeeks.com/",
"wiki": "http://git.skeeks.com/skeeks/cms-module-shop/tree/master/docs/guide-ru",
"wiki-cms": "http://git.skeeks.com/skeeks/cms/tree/master/docs/guide-ru",
"source": "http://git.skeeks.com/skeeks/cms-module-shop"
},
"authors": [
{
"name": "Semenov Alexander",
"email": "semenov@skeeks.com"
}
],
"minimum-stability": "dev",
"require": {
"skeeks/cms": "*",
"skeeks/cms-module-catalog": "*",
"skeeks/cms-module-money": "*"
},
"autoload": {
"psr-4": {
"skeeks\\modules\\cms\\shop\\": ""
}
}
}
\ No newline at end of file
<?php
/**
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 12.03.2015
*/
return [
'catalog' =>
[
'label' => 'Интернет магазин',
'priority' => 0,
"img" => ['\skeeks\modules\cms\shop\assets\Asset', 'icons/shop.png'],
'items' =>
[
[
"label" => "Заказы",
"url" => ["shop/admin-order"],
"img" => ['\skeeks\modules\cms\shop\assets\Asset', 'icons/shop.png']
],
[
"label" => "Корзины",
"url" => ["shop/admin-basket"],
"img" => ['\skeeks\modules\cms\shop\assets\Asset', 'icons/shop.png']
],
]
]
];
\ No newline at end of file
<?php
/**
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 07.03.2015
*/
return [];
\ No newline at end of file
<?php
/**
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 09.03.2015
*/
return [
'components' =>
[
'urlManager' => [
'rules' => [
'<_c:(cart)>' => 'shop/<_c>/index',
]
],
"registeredWidgets" => [
'components' => [
/*'skeeks\modules\cms\catalog\widgets\products\Products' =>
[
'name' => 'Виджет списка товаров',
'description' => 'Виджет списка товаров',
'templates' =>
[
'default' =>
[
'name' => 'Шаблон по умолчанию'
]
],
],*/
]
],
'registeredModels' =>
[
'components' =>
[
/*'product' =>
[
'modelClass' => 'skeeks\modules\cms\catalog\models\Product',
'name' => 'Продукт',
],*/
]
],
],
'modules' =>
[
'shop' => [
'class' => '\skeeks\modules\cms\shop\Module',
]
]
];
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment