From bd74917ca0ca60b005f66e66bb5b2350ac12b66c Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Mon, 21 Dec 2015 15:35:15 +0200 Subject: [PATCH] VItaliy 21.12.2015 upload --- frontend/config/main.php | 2 +- frontend/controllers/GoodsController.php | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/config/main.php b/frontend/config/main.php index 86bc0ec..cef67b9 100755 --- a/frontend/config/main.php +++ b/frontend/config/main.php @@ -60,7 +60,7 @@ return [ 'events/view/'=>'events/view', 'standard-services/view/'=>'standard-services/view', 'f/'=>'stone/ajax-filter', - 'goods/'=>'goods/index', // переделать + 'goods//'=>'goods/index', // переделать 'search'=>'site/search', 'contact'=>'site/contact', 'about'=>'site/about', diff --git a/frontend/controllers/GoodsController.php b/frontend/controllers/GoodsController.php index fc9eddd..d922c5e 100644 --- a/frontend/controllers/GoodsController.php +++ b/frontend/controllers/GoodsController.php @@ -17,8 +17,14 @@ use yii\web\Controller; class GoodsController extends Controller { public $layout = '/internal'; - public function actionIndex($name = '') + public function actionIndex($name, $id) { + + print('name = '.$name."
"); + print('id = '. $id); + die(); + + $arr = ['GoodsViewSearch' => ['name' => '0092S40090', 'brand' => 'BOSCH']]; -- libgit2 0.21.4