Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Added custom posts and products routes
givanza31c760271b3
diff --git a/config/app-routes.php b/config/app-routes.phpindex dba0929..255df3d 100644--- a/config/app-routes.php+++ b/config/app-routes.php@@ -73,7 +73,7 @@ return [//catalog'/shop' => ['module' => 'product/index'],'/shop/#page#' => ['module' => 'product/index'],- '/shop/#page#/filters-{filters}' => ['module' => 'product/category/index'],+ '/shop/#page#/filters-{filters}' => ['module' => 'product/index'],'/shop/{slug}' => ['module' => 'product/category/index'],'/shop/{slug}/#page#' => ['module' => 'product/category/index'],'/shop/{slug}/#page#/filters-{filters}' => ['module' => 'product/category/index'],@@ -174,6 +174,24 @@ return [//archive day//'/#year#/#month#/#day#'=> ['module' => 'content/archive/index'],+ //custom post+ '/{type}' => ['module' => 'content'],+ '/{type}/#page#' => ['module' => 'content'],+ '/{type}/cat/{slug}' => ['module' => 'content/category/index'],+ '/{type}/cat/{slug}/#page#' => ['module' => 'content/category/index'],+ '/{type}/tag/{slug}' => ['module' => 'content/tag/index'],+ '/{type}/tag/{slug}/#page#' => ['module' => 'content/tag/index'],+ '/{type}/author/{username}' => ['module' => 'content/user/index'],+ '/{type}/{slug}' => ['module' => 'content/post/index', 'edit'=>'?module=content/post&slug={slug}&type=post'],++ //custom product+ '/{type}' => ['module' => 'product/index', 'type' => '{type}'],+ '/{type}/#page#' => ['module' => 'product/index', 'type' => '{type}'],+ '/{type}/cat/{slug}' => ['module' => 'product/category/index', 'type' => '{type}'],+ '/{type}/cat/{slug}/#page#' => ['module' => 'product/category/index', 'type' => '{type}'],+ '/{type}/cat/{slug}/#page#/filters-{filters}' => ['module' => 'product/category/index', 'type' => '{type}'],+ '/{type}/{slug}' => ['module' => 'product/product/index', 'type' => '{type}', 'edit'=>'?module=product/product&type={type}&slug={slug}'],+//Cron'/run-cron/{key}' => ['module' => 'cron/index'],];