Skip to content

Commit

Permalink
v3 load
Browse files Browse the repository at this point in the history
  • Loading branch information
andrtechno committed Aug 26, 2021
1 parent 737d776 commit a60a76a
Show file tree
Hide file tree
Showing 32 changed files with 356 additions and 3,343 deletions.
12 changes: 10 additions & 2 deletions Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,24 +163,32 @@ public function bootstrap($app)
];


$rules[] = [
/*$rules[] = [
'class' => 'panix\mod\shop\components\rules\CategoryUrlRule',
'route' => 'shop/catalog/sales',
'defaults' => ['slug' => $path],
'index'=>'sales',
//'suffix'=>'.html',
'pattern' => "sales/<alias:[0-9a-zA-Z_\-]+>", ///<alias:[\w]+>
];
];*/


}
$rules[] = [
'class' => 'panix\mod\shop\components\rules\BaseUrlRule',
'route' => 'shop/catalog/sales',
'index' => 'sales',
'pattern' => 'sales/category/<category:\d+>',
];

$rules[] = [
'class' => 'panix\mod\shop\components\rules\BaseUrlRule',
'route' => 'shop/catalog/sales',
'index' => 'sales',
'pattern' => 'sales/page/<page:\d+>/per-page/<per-page:\d+>',
];
$rules['sales/page/<page:\d+>'] = 'shop/catalog/sales';

$rules[] = [
'class' => 'panix\mod\shop\components\rules\BaseUrlRule',
'route' => 'shop/catalog/sales',
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Module shop
# Module shop v3
[Описание на Русском](README_RU.md)

Module for PIXELION CMS
Expand Down
3 changes: 1 addition & 2 deletions README_RU.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Модуль Интернет-магазина
# Модуль Интернет-магазина v3
[Description of English](README.md)

Module for PIXELION CMS
Expand Down
Loading

0 comments on commit a60a76a

Please sign in to comment.